mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
WIP toggle sidebar menu:
- Fix toggleSide bar initialization
This commit is contained in:
parent
2d0a6859b3
commit
f75264c66f
@ -265,7 +265,6 @@
|
||||
{
|
||||
this.sideboxSizeCallback(_app.sideboxWidth);
|
||||
this.splitterUi.constraints[0].size = _app.sideboxWidth;
|
||||
|
||||
}
|
||||
_app.parentFw.scrollAreaUi.update();
|
||||
_app.parentFw.scrollAreaUi.setScrollPos(0);
|
||||
@ -275,6 +274,13 @@
|
||||
|
||||
//...and scroll to the top
|
||||
this.scrollAreaUi.setScrollPos(0);
|
||||
|
||||
// Handles toggleSidebar initialization
|
||||
if (typeof framework != 'undefined')
|
||||
{
|
||||
framework.getToggleSidebarState();
|
||||
framework.activeApp.browser.callResizeHandler();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
@ -409,20 +415,6 @@
|
||||
this.tag.parentFw.scrollAreaUi.update();
|
||||
},
|
||||
|
||||
/**
|
||||
* tabClickCallback is used internally by egw_fw in order to handle clicks on
|
||||
* a tab.
|
||||
*
|
||||
* @param {egw_fw_ui_tab} _sender specifies the tab ui object, the user has clicked
|
||||
*/
|
||||
tabClickCallback: function(_sender)
|
||||
{
|
||||
this._super.apply(this,arguments);
|
||||
|
||||
framework.getToggleSidebarState();
|
||||
framework.activeApp.browser.callResizeHandler();
|
||||
},
|
||||
|
||||
/**
|
||||
* toggleSidebar callback function, handles preference and resize
|
||||
* @param {string} _state state can be on/off
|
||||
|
Loading…
Reference in New Issue
Block a user