Ver código fonte

feat: 滚动问题修复

zhangyuhan 4 anos atrás
pai
commit
d37793be4e

+ 4 - 0
src/jfw/modules/app/src/web/staticres/jyapp/js/searchindex.js

@@ -893,6 +893,10 @@ var SuperSearch = {
     // 安卓获取高度异常临时处理方式
     setTimeout(function () {
       var isMaxHeight = $(".app-layout-content-b").height()  - $(".selected-export-box").height()
+      var defaultHeight = nowClientHeight - $(".app-layout-header").height()- $(".selected-export-box").height()
+      if (isMaxHeight < defaultHeight) {
+        isMaxHeight = defaultHeight
+      }
       $("#supersearchPage .app-layout-content-b #wrapper").css({height: isMaxHeight, 'overflow-y': 'auto'})
       $(".loading_").hide();
       $("#supersearchPage #working").addClass("hidden");

+ 4 - 0
src/web/staticres/js/wxSupersearch.js

@@ -865,6 +865,10 @@ var SuperSearch = {
     // 安卓获取高度异常临时处理方式
     setTimeout(function () {
       var isMaxHeight = $(".app-layout-content-b").height()  - $(".selected-export-box").height()
+      var defaultHeight = nowClientHeight - $(".app-layout-header").height()- $(".selected-export-box").height()
+      if (isMaxHeight < defaultHeight) {
+        isMaxHeight = defaultHeight
+      }
       $("#supersearchPage .app-layout-content-b #wrapper").css({height: isMaxHeight, 'overflow-y': 'auto'})
       $(".loading_").hide();
       $("#supersearchPage #working").addClass("hidden");