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

document.documentElement.clientHeight problem when search bar/bottom bar appears on devices #90

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

shaimz
Copy link
Contributor

@shaimz shaimz commented Aug 24, 2021

Due to document.documentElement.clientHeight when on iphone/adroind appears the bottom bar or the searchbar the height is calculated incorrectly so the selector doesn't work as intended to and skips elements. That's why window.innerHeight helps keeping track of the window height and makes it possible to select even if the bar appears or dissapears

Due to clientHeight , on iphone or other mobile devices the height wasn't calculated correctly if the search bar or the bottom bar on iphone appeared , so innerHeight made it possible to calculate the height everytime the bar on android/iphone appears
Update height calculation on mobileSelect.js
@onlyhom onlyhom merged commit 7a3d331 into onlyhom:master Aug 10, 2022
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.

None yet

2 participants