Skip to content

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

Merged
Tyriar merged 2 commits intomicrosoft:mainfrom
jeanp413:fix-124928
Jun 9, 2021
Merged

Fixes terminal drop overlay moves horizontally instead of vertically when pane is on the side#124985
Tyriar merged 2 commits intomicrosoft:mainfrom
jeanp413:fix-124928

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