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

Fixes terminal drop overlay moves horizontally instead of vertically when pane is on the side #124985

Merged
merged 2 commits into from
Jun 9, 2021

Conversation

jeanp413
Copy link
Contributor

This PR fixes #124928

Comment on lines +2035 to +2040
private _getViewOrientation(): Orientation {
const panelPosition = this._layoutService.getPanelPosition();
const terminalLocation = this._viewDescriptorService.getViewLocationById(TERMINAL_VIEW_ID);
return terminalLocation === ViewContainerLocation.Panel && panelPosition === Position.BOTTOM
? Orientation.HORIZONTAL
: Orientation.VERTICAL;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to copy this logic from TerminalGroup as I cannot use TerminalService.onPanelOrientationChanged to avoid a cyclic dependency

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

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

Great job as always 👍

@Tyriar Tyriar merged commit 12e7a6a into microsoft:main Jun 9, 2021
@jeanp413 jeanp413 deleted the fix-124928 branch June 9, 2021 23:57
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terminal drop overlay moves horizontally instead of vertically when pane is on the side
3 participants