Explorar el Código

Fixes hiding toolbars.

Schedule new hide check if toolbar is hovered, overlay is shown or the sideBar container is visible (chat, contactlist , etc.).
j8
damencho hace 9 años
padre
commit
686e85cd4f
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4
    2
      modules/UI/toolbars/ToolbarToggler.js

+ 4
- 2
modules/UI/toolbars/ToolbarToggler.js Ver fichero

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

Loading…
Cancelar
Guardar