Skip to content

Keep a zoomed pane's view when the layout resizes it - #2010

Open
romleiaj wants to merge 1 commit into
mainfrom
fix/pane-resize-keep-zoom
Open

romleiaj wants to merge 1 commit into
mainfrom
fix/pane-resize-keep-zoom

Conversation

@romleiaj

Copy link
Copy Markdown
Collaborator

onResize reset every pane whose container changed size, so anything that resized the annotator -- opening a context panel from the sidebar, the controls strip growing a row -- threw away the zoom the reviewer had set.

Each pane now remembers the view its last reset produced: the per-pane native fit, or the Align View reference fit when the aggregate reset goes through the aligned override. On a resize, a pane still at that view refits to the new size as before, and a pane the user has zoomed or panned keeps its zoom and center.

This is the most subjective change of the 3, but I find it very jarring to zoom in on an object, and say, open the advanced tools to change the image enhancements, and completely reset the zoom. But, if this is standard flow happy to remove it.

onResize reset every pane whose container changed size, so anything that
resized the annotator -- opening a context panel from the sidebar, the
controls strip growing a row -- threw away the zoom the reviewer had set.

Each pane now remembers the view its last reset produced: the per-pane
native fit, or the Align View reference fit when the aggregate reset goes
through the aligned override. On a resize, a pane still at that view refits
to the new size as before, and a pane the user has zoomed or panned keeps
its zoom and center.

This branch has not been deployed

No deployments
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.

1 participant