-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix: Map offset on edge #728
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
81237c8
to
81573b2
Compare
81573b2
to
163666d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, really nice! 👏
Nit: I wonder if it makes sense to maybe extract this logic into a hook, as I think it's duplicated right now across chart preview and chart published? What do you think?
Done 👍 |
@ptbrowne thx for your fix. unfortunately the fix only helped for published maps. the error ist still present in edit mode :-( cc @sosiology |
We have logic to watch the height of the container for chart and table
in published view. This is to ensure that when switching from table
to chart, we have no jump of content.
Before, we would watch the height automatically and it sometimes would
make the container a bit too short to accomodate the map when it mounts.
I suspect it would for a brief time show scrollbars on Edge, and those
scrollbars would offset the layers that were drawn at this point.
Now, we measure the height just before switching to the other view,
instead of doing it continuously. This ensures that the height is stable
and it removes the geojson layers offset bug on Edge.
fix #723