Просмотр исходного кода

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 8 лет назад
Родитель
Сommit
686e85cd4f
1 измененных файлов: 4 добавлений и 2 удалений
  1. 4
    2
      modules/UI/toolbars/ToolbarToggler.js

+ 4
- 2
modules/UI/toolbars/ToolbarToggler.js Просмотреть файл

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

Загрузка…
Отмена
Сохранить