File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ function sidebarScrollFix() {
44
44
45
45
//fix小尺寸屏幕下二级菜单高度高于窗口高度时显示不全的情况
46
46
var $activeList = $ ( this ) . children ( 'ul' ) ;
47
- var activeListOffsetBottom = $activeList . height ( ) - visibleOffsetTop ; // Math.abs($(window).height() - visibleOffsetTop - $(this).height());
47
+ var activeListOffsetBottom = Math . abs ( $ ( window ) . height ( ) - visibleOffsetTop - $ ( this ) . height ( ) ) ;
48
48
var requireActiveListHeight = $activeList . height ( ) ;
49
49
if ( activeListOffsetBottom < requireActiveListHeight ) {
50
- $activeList . css ( { "height" : activeListOffsetBottom } ) ;
50
+ $activeList . css ( { "height" : requireActiveListHeight } ) ;
51
51
//滚动条样式
52
- $activeList . addClass ( 'scroll-list' ) ;
52
+ $activeList . addClass ( 'scroll-list' ) ;
53
53
}
54
54
55
55
} , function ( evt ) {
You can’t perform that action at this time.
0 commit comments