Skip to content

Commit 208cb98

Browse files
committed
rename variable in nav script
1 parent c208b0f commit 208cb98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/js/01-nav.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@
177177

178178
function fitNav () {
179179
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'
180+
var occupiedHeight = navBounds.availableHeight - navBounds.encroachingElement.getBoundingClientRect().top
181+
nav.style.height = occupiedHeight > 0
182+
? Math.max(0, Math.round(navBounds.preferredHeight - occupiedHeight)) + 'px'
183183
: ''
184184
menuPanel.scrollTop = scrollDatum - menuPanel.offsetHeight
185185
}

0 commit comments

Comments
 (0)