mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 21:32:46 +02:00
added real Minimum and Maximum values to the resizeable sidebar
This commit is contained in:
parent
0d9ed45db1
commit
59a5ebe73a
@ -4,18 +4,19 @@ require_once(EGW_INCLUDE_ROOT . '/phpgwapi/inc/class.dragdrop.inc.php');
|
|||||||
if($GLOBALS['egw_info']['user']['preferences']['common']['enable_dragdrop'])
|
if($GLOBALS['egw_info']['user']['preferences']['common']['enable_dragdrop'])
|
||||||
{
|
{
|
||||||
$dragdrop = new dragdrop();
|
$dragdrop = new dragdrop();
|
||||||
|
$maxOffLeft = $this->sideboxwidth - 200;
|
||||||
|
$maxOffRight = 500 - $this->sideboxwidth;
|
||||||
|
$maxOffLeft < 0 && $maxOffLeft = 0;
|
||||||
|
$maxOffRight < 0 && $maxOffRight = 0;
|
||||||
|
|
||||||
$dragdrop->addCustom(
|
$dragdrop->addCustom(
|
||||||
'thesideboxcolumn',
|
'thesideboxcolumn',
|
||||||
array('NO_DRAG'),
|
array('NO_DRAG')
|
||||||
false,
|
|
||||||
false,
|
|
||||||
false
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$dragdrop->addCustom(
|
$dragdrop->addCustom(
|
||||||
'sideresize',
|
'sideresize',
|
||||||
array('CURSOR_W_RESIZE','MAXOFFBOTTOM+0','MAXOFFTOP+0','MAXOFFLEFT+1000','MAXOFFRIGHT+1000'),
|
array('CURSOR_W_RESIZE','HORIZONTAL','MAXOFFLEFT+'.$maxOffLeft,'MAXOFFRIGHT+'.$maxOffRight),
|
||||||
array('sideboxwidth'=>$this->sideboxwidth),
|
array('sideboxwidth'=>$this->sideboxwidth),
|
||||||
'phpgwapi.dragDropFunctions.dragSidebar',
|
'phpgwapi.dragDropFunctions.dragSidebar',
|
||||||
'phpgwapi.dragDropFunctions.dropSidebar'
|
'phpgwapi.dragDropFunctions.dropSidebar'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user