Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed #listings div height#40

Open
Isaiah-Cornelius wants to merge 3 commits into
mapbox:master from
Isaiah-Cornelius:finder-locations-fix-branch
Open

Fixed #listings div height #40
Isaiah-Cornelius wants to merge 3 commits into
mapbox:master from
Isaiah-Cornelius:finder-locations-fix-branch

Conversation

@Isaiah-Cornelius

@Isaiah-Cornelius Isaiah-Cornelius commented Jan 1, 2024

Copy link
Copy Markdown

#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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /