浏览代码

HUE-2305 [fb] Create a smoother docking of the actionbar

Changed amount required for docking
Set a z-index on actionbar
Enrico Berti 11 年之前
父节点
当前提交
2b1d9c0
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      apps/filebrowser/src/filebrowser/templates/listdir_components.mako

+ 3 - 3
apps/filebrowser/src/filebrowser/templates/listdir_components.mako

@@ -1516,14 +1516,14 @@ from django.utils.translation import ugettext as _
 
       $(".actionbar").data("originalWidth", $(".actionbar").width());
 
-      $(".actionbarGhost").height($(".actionbar").outerHeight() + 20);
+      $(".actionbarGhost").height($(".actionbar").outerHeight());
 
       resetActionbar();
 
       $(window).scroll(function () {
-        if ($(window).scrollTop() > 95) {
+        if ($(window).scrollTop() > 20) {
           $(".actionbar").width($(".actionbar").data("originalWidth"));
-          $(".actionbar").css("position", "fixed").css("top", "73px");
+          $(".actionbar").css("position", "fixed").css("top", "73px").css("zIndex", "1001");
           $(".actionbarGhost").removeClass("hide");
         } else {
           resetActionbar();