Skip to content

Update Zoom Source to include columns - #7899

Merged
melissa-barca merged 4 commits into
masterfrom
bugfix/zoom-source-columns
Sep 29, 2020
Merged

melissa-barca merged 4 commits into
masterfrom
bugfix/zoom-source-columns

Conversation

@melissa-barca

Copy link
Copy Markdown
Contributor

Intent

Fixes #7801

Enhances the Zoom Source command so it zooms in on the most recently accessed Source pane - this may be a Source Column.

Approach

I updated onLayoutZoomSource to specify the active source column rather than the defaulting to the main column. While researching this PR I realized that our zooming animation code was unnecessary as MainSplitPanel has an animate function we can use to get the same effect so I removed a fair amount of the existing code as well.

QA Notes

Open several source columns and move focus between them, then select 'Zoom Source'. The most recently selected column should be zoomed in on.

@gtritchie gtritchie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (one very minor question)

}
};

public void onLayout(Layer layer, double progress)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this empty method needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes because it's part of the AnimationCallback interface. It gets called at each step of animation but we don't need to do anything special for that here.

@melissa-barca
melissa-barca merged commit 55674de into master Sep 29, 2020
@melissa-barca
melissa-barca deleted the bugfix/zoom-source-columns branch September 29, 2020 14:53
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.

Update zoom commands to account for multiple columns

2 participants