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

When inserting a new page, we should scroll the canvas so we’re at the top left #5867

Closed
maltenuhn opened this issue Jun 10, 2024 · 0 comments · Fixed by #5877
Closed

When inserting a new page, we should scroll the canvas so we’re at the top left #5867

maltenuhn opened this issue Jun 10, 2024 · 0 comments · Fixed by #5877
Assignees
Labels
Canvas Affects the visual editor

Comments

@maltenuhn
Copy link
Member

Problem
If you insert a new route, we navigate to it (good) but if you'd previously scrolled down the canvas to edit an existing, longer, page, you don't see the new page (because it's a good 1000 pixels to the north).

Solution
When inserting a new page, scroll or reset the canvas so that the top left edge is at a usable spot. To save time on premature perfection, this should be hardcoded and not eg menu-width dependent, I suggest hardcoding this so the top left of the scene (not the scene label) shows up on the screen at 380px east and 120px north. (NB it might be easier to set the 0,0 coordinate of the canvas to that point - if so, that's likely preferable!)

Result should look roughly like this:

Image

@maltenuhn maltenuhn added the Canvas Affects the visual editor label Jun 10, 2024
@ruggi ruggi mentioned this issue Jun 10, 2024
2 tasks
@ruggi ruggi closed this as completed in d15fb9d Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Canvas Affects the visual editor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants