Fixes hiding toolbars.

Schedule new hide check if toolbar is hovered, overlay is shown or the sideBar container is visible (chat, contactlist , etc.).
pull/872/head
damencho 9 years ago
parent 0e94bf7e0b
commit 686e85cd4f
  1. 6
      modules/UI/toolbars/ToolbarToggler.js

@ -35,9 +35,11 @@ function hideToolbar(force) {
clearTimeout(toolbarTimeoutObject);
toolbarTimeoutObject = null;
if (Toolbar.isHovered() || APP.UI.isRingOverlayVisible()) {
if (Toolbar.isHovered()
|| APP.UI.isRingOverlayVisible()
|| SideContainerToggler.isVisible()) {
toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);
} else if (!SideContainerToggler.isVisible() || force) {
} else {
Toolbar.hide();
$('#subject').animate({top: "-=40"}, 300);
}

Loading…
Cancel
Save