Browse Source

导航栏滚动条相关

MaiXinRong 2 năm trước cách đây
mục cha
commit
5a28045b5b
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      app/public/js/global.js

+ 2 - 0
app/public/js/global.js

@@ -1,6 +1,8 @@
 /*全局自适应高度*/
 /*全局自适应高度*/
 function autoFlashHeight(){
+    const select = $(".scrollbar-auto .active");
+    $(".scrollbar-auto")[0].scrollTop = select[0].offsetTop;
     function getObjHeight(select) {
         return select.length > 0 ? select.height() : 0;
     }