Fixes hiding toolbars.
Schedule new hide check if toolbar is hovered, overlay is shown or the sideBar container is visible (chat, contactlist , etc.).
This commit is contained in:
parent
0e94bf7e0b
commit
686e85cd4f
|
@ -35,9 +35,11 @@ function hideToolbar(force) {
|
||||||
clearTimeout(toolbarTimeoutObject);
|
clearTimeout(toolbarTimeoutObject);
|
||||||
toolbarTimeoutObject = null;
|
toolbarTimeoutObject = null;
|
||||||
|
|
||||||
if (Toolbar.isHovered() || APP.UI.isRingOverlayVisible()) {
|
if (Toolbar.isHovered()
|
||||||
|
|| APP.UI.isRingOverlayVisible()
|
||||||
|
|| SideContainerToggler.isVisible()) {
|
||||||
toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);
|
toolbarTimeoutObject = setTimeout(hideToolbar, toolbarTimeout);
|
||||||
} else if (!SideContainerToggler.isVisible() || force) {
|
} else {
|
||||||
Toolbar.hide();
|
Toolbar.hide();
|
||||||
$('#subject').animate({top: "-=40"}, 300);
|
$('#subject').animate({top: "-=40"}, 300);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue