Move folder list resize button to bottom

This commit is contained in:
RainLoop Team 2014-04-28 19:53:16 +04:00
parent 0ce7b03fd0
commit c25b5bfef7
13 changed files with 103 additions and 50 deletions

View file

@ -1801,6 +1801,7 @@ Utils.setExpandedFolder = function (sFullNameHash, bExpanded)
Utils.initLayoutResizer = function (sLeft, sRight, sClientSideKeyName)
{
var
iMinWidth = 155,
oLeft = $(sLeft),
oRight = $(sRight),
@ -1820,15 +1821,17 @@ Utils.initLayoutResizer = function (sLeft, sRight, sClientSideKeyName)
},
fDisable = function (bDisable) {
var iWidth = 5;
if (bDisable)
{
oLeft.resizable('disable');
fSetWidth(5);
fSetWidth(iWidth);
}
else
{
oLeft.resizable('enable');
fSetWidth(RL.local().get(sClientSideKeyName) || 170);
iWidth = Utils.pInt(RL.local().get(sClientSideKeyName)) || iMinWidth;
fSetWidth(iWidth > iMinWidth ? iWidth : iMinWidth);
}
},
@ -1851,8 +1854,8 @@ Utils.initLayoutResizer = function (sLeft, sRight, sClientSideKeyName)
oLeft.resizable({
'helper': 'ui-resizable-helper',
'minWidth': 170,
'maxWidth': 400,
'minWidth': iMinWidth,
'maxWidth': 350,
'handles': 'e',
'stop': fResizeFunction
});