We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c208b0f commit 208cb98Copy full SHA for 208cb98
src/js/01-nav.js
@@ -177,9 +177,9 @@
177
178
function fitNav () {
179
var scrollDatum = menuPanel.scrollTop + menuPanel.offsetHeight
180
- var reclaimedHeight = navBounds.availableHeight - navBounds.encroachingElement.getBoundingClientRect().top
181
- nav.style.height = reclaimedHeight > 0
182
- ? Math.max(0, Math.round(navBounds.preferredHeight - reclaimedHeight)) + 'px'
+ var occupiedHeight = navBounds.availableHeight - navBounds.encroachingElement.getBoundingClientRect().top
+ nav.style.height = occupiedHeight > 0
+ ? Math.max(0, Math.round(navBounds.preferredHeight - occupiedHeight)) + 'px'
183
: ''
184
menuPanel.scrollTop = scrollDatum - menuPanel.offsetHeight
185
}
0 commit comments