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:
Nathan Gray 2016-02-24 16:16:21 +00:00
parent 0e379eeab4
commit 5b10bde980

View File

@ -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);
}; };