Browse Source

bug fixed

zhongzewei 7 years ago
parent
commit
3bb72f8546
1 changed files with 6 additions and 2 deletions
  1. 6 2
      web/building_saas/js/global.js

+ 6 - 2
web/building_saas/js/global.js

@@ -14,8 +14,12 @@ function autoFlashHeight(){
     $('.main-content').width($(window).width()-$('.main-nav').width()-$('.main-side').width()-5);
     $('.main-content').width($(window).width()-$('.main-nav').width()-$('.main-side').width()-5);
     $('#glj_tree_div .modal-content').width($(window).width() < 1020 + 20 ? $(window).width() - 20 : 1020);
     $('#glj_tree_div .modal-content').width($(window).width() < 1020 + 20 ? $(window).width() - 20 : 1020);
     //$("#main .main-data-top").height($(window).height()-headerHeight-toolsbarHeight-bottomContentHeight-1);
     //$("#main .main-data-top").height($(window).height()-headerHeight-toolsbarHeight-bottomContentHeight-1);
-    loadMainSize();//zhang 2018-06-04  统一加载高度方法
-    loadProjectGljSize();
+    if(typeof loadMainSize !== 'undefined'){
+        loadMainSize();//zhang 2018-06-04  统一加载高度方法
+    }
+    if(typeof loadProjectGljSize !== 'undefined'){
+        loadProjectGljSize();
+    }
     $(".main-data-full").height($(window).height()-headerHeight-toolsbarHeight-1);
     $(".main-data-full").height($(window).height()-headerHeight-toolsbarHeight-1);
     $(".main-data-full-fl").height($(window).height()-headerHeight-toolsbarHeight-37);
     $(".main-data-full-fl").height($(window).height()-headerHeight-toolsbarHeight-37);
     $(".main-data-full-feeRate").height($(window).height()-headerHeight-78);
     $(".main-data-full-feeRate").height($(window).height()-headerHeight-78);