Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #listings div height #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Isaiah-Cornelius
Copy link

#listings div was too large when screen width < 800px breakpoint shifted the locations to the bottom of the screen; when scrolling to the bottom of the div, some locations would not be visible.

Now, #listings div height will not exceed the available viewable screen height.

Note: The comment on line 20 snuck through and documents my hacky code tendencies and should be destroyed. I was calling getWindowDimensions() on line 35 and getting an incorrect height value, using window.onload = getWindowDimensions instead allowed document.querySelector('#sidebarA').clientHeight to get the correct value.

Happy New Year!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant