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() {
4444
4545 //fix小尺寸屏幕下二级菜单高度高于窗口高度时显示不全的情况
4646 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 ( ) ) ;
4848 var requireActiveListHeight = $activeList . height ( ) ;
4949 if ( activeListOffsetBottom < requireActiveListHeight ) {
50- $activeList . css ( { "height" : activeListOffsetBottom } ) ;
50+ $activeList . css ( { "height" : requireActiveListHeight } ) ;
5151 //滚动条样式
52- $activeList . addClass ( 'scroll-list' ) ;
52+ $activeList . addClass ( 'scroll-list' ) ;
5353 }
5454
5555 } , function ( evt ) {
You can’t perform that action at this time.
0 commit comments