-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Not loading data when zoom set to < 100% #199
Comments
Can you tell us which browser and OS or does it happen in any browser? |
@les2 I'm not able to recreate this in the demo app (zoom set to 75%). If you add a fixed header + height does it solve your issue? |
@buschtoens debugged issue with one of our users and i reproduced on chrome 53; working on a reproduction recipe. |
update: i've been trying to reproduce the problem over here but no luck yet. but i can consistently reproduce in one of our production applications. i think i'm using a new version of ELT in the repo i linked above so i'm going to try to reproduce with the exact version we're currently using in production - 1.4.2 - and see if that's the issue. |
TL;DR -- this is a floating point bug ... in ember-in-viewport addon. This is really hard to reproduce because you need the numbers to round just right. DetailsThe bug is in one of these two locations:
Example.
right boundary check in detail:
So we need to round (down) to integer value the bounding client rect values, I guess. I'm going to look at a PR to the ember-in-viewport repo in a little bit and then open a PR to this repo that just bumps the version of that package. |
@offirgolan I have managed to make it reproducible: https://les2.github.io/ember-light-table-zoom-bug/#/elt-demo
|
@les2 this seems as though it was one hell of a bug hunt. Thanks for taking the time to put this all together. Im really sorry I have been of no help! Im currently traveling out of the country so I don't have too much time but it seems as though you have a pretty good handle on this issue. I look forward to a PR with a solution on the ember-in-viewport side 😄! If you have something you wanna run by me, feel free to ping me on slack as I'm a bit more reachable there. |
@les2 a new patch (1.8.1) has been released with the latest release of ember-in-viewport. Thanks again for taking the time to hunt this issue down 😸 |
For some reason, the table is not loading the first page of data when the user has the zoom set to 90% (technically, any zoom < 100%).
We are using ELT without a fixed header and without a
height
set on the table.I will see if i can create a repo with a simple, reproducible example later on.
Not sure where the bug is - going to attempt to debug it shortly.
The text was updated successfully, but these errors were encountered: