mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Trigger a resize to notify listeners of the change in size
Fixes sidebox calendar is too small after expanding sidebar
This commit is contained in:
parent
0e379eeab4
commit
5b10bde980
@ -1271,8 +1271,12 @@ egw_fw_ui_toggleSidebar.prototype.onToggle = function(_callbackContext)
|
|||||||
if (this.contDiv.hasClass('egw_fw_sidebar_toggleOn'))
|
if (this.contDiv.hasClass('egw_fw_sidebar_toggleOn'))
|
||||||
{
|
{
|
||||||
this.contDiv.removeClass('egw_fw_sidebar_toggleOn');
|
this.contDiv.removeClass('egw_fw_sidebar_toggleOn');
|
||||||
_callbackContext.splitterUi.set_disable(false);
|
var splitter = _callbackContext.splitterUi;
|
||||||
|
splitter.set_disable(false);
|
||||||
this.toggleCallback.call(_callbackContext,'off');
|
this.toggleCallback.call(_callbackContext,'off');
|
||||||
|
window.setTimeout(function() {
|
||||||
|
$j(window).resize();
|
||||||
|
},500);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1294,4 +1298,4 @@ egw_fw_ui_toggleSidebar.prototype.set_toggle = function (_state, _toggleCallback
|
|||||||
this.contDiv.toggleClass('egw_fw_sidebar_toggleOn',_state === 'on'?true:false);
|
this.contDiv.toggleClass('egw_fw_sidebar_toggleOn',_state === 'on'?true:false);
|
||||||
_context.splitterUi.set_disable(_state === 'on'?true:false);
|
_context.splitterUi.set_disable(_state === 'on'?true:false);
|
||||||
_toggleCallback.call(_context, _state);
|
_toggleCallback.call(_context, _state);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user