BUG 5003 Request for horizontal scroll bars when process map is wider than browser window SOLVED

- The horizontal scrollbar was on the bottom then is not visible
- Before to load the process map get the maximun x position of the task to calculate the correct width
This commit is contained in:
Julio Cesar Laura
2012-09-05 17:17:40 -04:00
parent 7d5144c3c6
commit 514eb6b037
3 changed files with 25 additions and 10 deletions

View File

@@ -6905,4 +6905,18 @@ function saveExtEvents($oData)
return $aIDocs;
}
function getMaximunTaskX($processUid) {
$criteria = new Criteria('workflow');
$criteria->addSelectColumn('MAX(TAS_POSX) AS MAX_X');
$criteria->add(TaskPeer::PRO_UID, $processUid);
$dataset = TaskPeer::doSelectRS($criteria);
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$dataset->next();
$row = $dataset->getRow();
return (int)$row['MAX_X'];
}
}