File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 173
173
}
174
174
175
175
function fitNav ( ) {
176
- var scrollDatum = menuPanel && ( menuPanel . scrollTop + menuPanel . offsetHeight )
176
+ var scrollDatum = menuPanel && menuPanel . scrollTop + menuPanel . offsetHeight
177
177
var occupied = navBounds . availableHeight - navBounds . encroachingElement . getBoundingClientRect ( ) . top
178
- var modified = occupied > 0
179
- ? nav . style . height !== ( nav . style . height = Math . max ( Math . round ( navBounds . preferredHeight - occupied ) , 0 ) + 'px' )
180
- : ! ! nav . style . removeProperty ( 'height' )
178
+ var modified =
179
+ occupied > 0
180
+ ? nav . style . height !== ( nav . style . height = Math . max ( Math . round ( navBounds . preferredHeight - occupied ) , 0 ) + 'px' )
181
+ : ! ! nav . style . removeProperty ( 'height' )
181
182
if ( menuPanel ) menuPanel . scrollTop = scrollDatum - menuPanel . offsetHeight
182
183
return modified
183
184
}
You can’t perform that action at this time.
0 commit comments