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
[Bug]: viewportScreenBounds calculated wrong after load a snapshot from different screen size #3705
Comments
https://stackblitz.com/edit/vitejs-vite-jnqyji?file=src%2FApp.tsx
|
Hi! Sorry for the delay in getting back to you. This issue is caused by using the If you need to persist certain bits of UI state (camera position, current page, which shapes are selected, etc) then we have some separate tools for persisting and reloading this kind of 'session' state (look for the substring In the meantime it looks like the app you've linked doesn't need that so you can probably just remove the |
Hi! Sorry, I just posted a very few pieces of info here, but we discussed this in detail on Discord and found the workaround, too! So even call But calling this snippet after
@MitjaBezensek led me to find this solution. The actual fix could be a higher-level |
What happened?
We have a content editor inside our page (a worksheet for students). We call
editor.zoomToFit()
after saving the image / clicking on cancel, and it works (almost) well with v2.0, but it's totally broken with v2.1How can we reproduce the bug?
I posted a video about it on Discord
What browsers are you seeing the problem on?
Chrome
Contact Details
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: