Преглед изворни кода

update display from buildingSAAS

MaiXinRong пре 8 година
родитељ
комит
634003b6c4
2 измењених фајлова са 21 додато и 7 уклоњено
  1. 14 0
      web/building_saas/css/main.css
  2. 7 7
      web/building_saas/js/global.js

+ 14 - 0
web/building_saas/css/main.css

@@ -272,3 +272,17 @@ body {
   height: 400px;
   overflow-y: auto;
 }
+.sidebar-tools-bar {
+  background:#fff
+}
+.side-search-box{
+  position: absolute;
+  background:#fff;
+  top:33px;
+  left:0;
+  border-bottom:1px solid #ddd
+}
+.side-search-box .result-box{
+  height:300px;
+  overflow: auto;
+}

+ 7 - 7
web/building_saas/js/global.js

@@ -1,16 +1,16 @@
 /*全局自适应高度*/
 function autoFlashHeight(){
     var headerHeight = $(".header").height();
+    var toolsbarHeight = $(".toolsbar").height();
     var bottomContentHeight = $(".bottom-content").height();
-    var toolsBar = $(".tools-bar").height();
-    $(".content").height($(window).height()-headerHeight);
-    $(".main-side").height($(window).height()-headerHeight-2);
-    $(".fluid-content").height($(window).height()-headerHeight-1);
+    var sidebarToolsBarHeight = $(".sidebar-tools-bar").height();
+    $(".main-data-side-f").height($(window).height()-headerHeight-toolsbarHeight-2);
+    $(".main-data-side-s").height($(window).height()-headerHeight-toolsbarHeight-sidebarToolsBarHeight-202);
+    $(".main-data-top").height($(window).height()-headerHeight-toolsbarHeight-bottomContentHeight-1);
+    $(".main-data-full").height($(window).height()-headerHeight-toolsbarHeight-1);
     $(".side-content").height($(window).height()-headerHeight );
-    $(".poj-list").height($(window).height()-headerHeight);
+    $(".poj-list").height($(window).height()-headerHeight-toolsbarHeight);
     $(".form-list").height($(window).height()-headerHeight-50 );
-    $(".main-data-top").height($(window).height()-headerHeight-toolsBar-bottomContentHeight-2);
-    $(".main-data").height($(window).height()-headerHeight);
 };
 $(window).resize(autoFlashHeight);
 /*全局自适应高度结束*/