Skip to content

Fix window style under minimized state#17058

Merged
DHowett merged 1 commit intomicrosoft:mainfrom
tusharsnx:fix-minimized-style
Apr 16, 2024
Merged

Fix window style under minimized state#17058
DHowett merged 1 commit intomicrosoft:mainfrom
tusharsnx:fix-minimized-style

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
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

No open projects
Status: Cherry Picked

Development

Successfully merging this pull request may close these issues.

one line moved up when maximizing Terminal

3 participants