Repository navigation
Fix issue with zoom column commands - #7796
Merged
Merged
Conversation
jmcphers
approved these changes
Sep 15, 2020
| } | ||
|
|
||
| // The following commands need to be updated to fit the new layout with additional source | ||
| // columns. The mismatched names/actions are temporarily intentional until this is handled. |
Member
There was a problem hiding this comment.
Do we have an issue open on this?
gtritchie
approved these changes
Sep 15, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Fixes #7687
The main purpose of this PR is to fix an issue affecting the
Zoom Left ColumnandZoom Right Columncommands when user has additional source columns open. The issue is primarily caused by the fact that the "left column" is no longer the left column with additional source columns.This also fixes and issue where
WindowEnsureVisibleEventwas never updated to handle multiple source windows but was being initiated by source columns.Approach
This PR only ensure both commands work as they used to (zooming on the right column or left/center column). Another one will need to be created to have the wording of the commands updated and commands to zoom on the additional source columns.
The majority of the new logic is to ensure clean animation when transitioning to/from a zoomed state. Existing logic was only for the right side which always has one panel. For the left side, I need to calculate the total size to be displayed and then allocate those pixels so that they loaded left -> right or right -> left.
QA Notes
These issues only happen when using additional source columns. We should make sure different orderings of the zoom commands work as they did in 1.3.