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

Fix window style under minimized state #17058

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

tusharsnx
Copy link
Contributor

Closes: #13961

This PR changes the window styling we use under the minimized state. We now retain the active window styling so the content's height doesn't change when switching between minimized and maximized states.

Validation Steps Performed

  • Open Terminal and go into Maximized mode.
  • Click on the Minimize button.
  • No SizeChanged event in ControlCore.
  • Click on the WT icon in the taskbar to restore it.
  • No SizeChanged event in ControlCore.

@microsoft-github-policy-service microsoft-github-policy-service bot added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Priority-3 A description (P3) Product-Terminal The new Windows Terminal. labels Apr 13, 2024
@DHowett
Copy link
Member

DHowett commented Apr 16, 2024

Oh wow, great catch! Is this because when we go from Max to Min we change the height of the TabRowControl/MinMaxCloseControl?

@DHowett
Copy link
Member

DHowett commented Apr 16, 2024

Oh, I see it now. Thanks @tusharsnx and @j4james for the investigation :)

@DHowett DHowett enabled auto-merge April 16, 2024 15:30
@DHowett DHowett added this pull request to the merge queue Apr 16, 2024
Merged via the queue into microsoft:main with commit 11c4aa4 Apr 16, 2024
15 checks passed
DHowett pushed a commit that referenced this pull request Apr 22, 2024
Closes: #13961

This PR changes the window styling we use under the minimized state. We
now retain the active window styling so the content's height doesn't
change when switching between minimized and maximized states.

## Validation Steps Performed
- Open Terminal and go into Maximized mode.
- Click on the Minimize button.
- No `SizeChanged` event in `ControlCore`.
- Click on the WT icon in the taskbar to restore it.
- No `SizeChanged` event in `ControlCore`.

(cherry picked from commit 11c4aa4)
Service-Card-Id: 92350318
Service-Version: 1.19
DHowett pushed a commit that referenced this pull request Apr 22, 2024
Closes: #13961

This PR changes the window styling we use under the minimized state. We
now retain the active window styling so the content's height doesn't
change when switching between minimized and maximized states.

## Validation Steps Performed
- Open Terminal and go into Maximized mode.
- Click on the Minimize button.
- No `SizeChanged` event in `ControlCore`.
- Click on the WT icon in the taskbar to restore it.
- No `SizeChanged` event in `ControlCore`.

(cherry picked from commit 11c4aa4)
Service-Card-Id: 92350319
Service-Version: 1.20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Terminal The new Windows Terminal.
Projects
Status: Cherry Picked
Development

Successfully merging this pull request may close these issues.

one line moved up when maximizing Terminal
3 participants