Improve GUI (#1014)

This commit is contained in:
RainLoop Team 2016-04-28 23:32:54 +03:00
parent b3299725f6
commit f64b63c549
16 changed files with 218 additions and 76 deletions

View file

@ -348,6 +348,7 @@ class AbstractApp extends AbstractBoot
Globals.leftPanelDisabled.subscribe((bValue) => {
Globals.$html.toggleClass('rl-left-panel-disabled', bValue);
Globals.$html.toggleClass('rl-left-panel-enabled', !bValue);
});
Globals.leftPanelType.subscribe((sValue) => {
@ -355,6 +356,8 @@ class AbstractApp extends AbstractBoot
Globals.$html.toggleClass('rl-left-panel-short', 'short' === sValue);
});
Globals.leftPanelDisabled.valueHasMutated();
ssm.ready();
require('Stores/Language').populate();

View file

@ -1072,6 +1072,10 @@ class AppUser extends AbstractApp
fSetWidth = (iWidth) => {
if (iWidth)
{
Globals.leftPanelWidth(iWidth);
Globals.$html.removeClass('rl-resizer');
oLeft.css({
width: '' + iWidth + 'px'
});
@ -1095,6 +1099,7 @@ class AppUser extends AbstractApp
fSetWidth(iWidth > iMinWidth ? iWidth : iMinWidth);
}
},
fResizeCreateFunction = (oEvent) => {
if (oEvent && oEvent.target)
{
@ -1120,9 +1125,18 @@ class AppUser extends AbstractApp
{
Local.set(sClientSideKeyName, oObject.size.width);
Globals.leftPanelWidth(oObject.size.width);
oRight.css({
left: '' + oObject.size.width + 'px'
});
oLeft.css({
position: '',
top: '',
left: '',
height: ''
});
}
}
;