Minimize button disappears at minimum size #6939

Closed
opened 2026-01-31 00:50:57 +00:00 by claunia · 3 comments
Owner

Originally created by @AnuthaDev on GitHub (Mar 18, 2020).

Environment

Windows build number: [Microsoft Windows [Version 10.0.18363.535]]
Windows Terminal version (if applicable): 0.10.761.0

Steps to reproduce

Resize the terminal to the minimum size.

Expected behavior

Minimize button should be visible/A minimum size limit like other apps:
Chrome: image

Credge: image

Firefox: image

Notepads: image

Actual behavior

Just like most win32 apps, the terminal becomes too small(Also look how near the close button is to the edge. Some grid layout issues I guess):
image

Other programs like explorer, task manager etc show the same behaviour(atleat explorer has a minimum size limit):
image

image

Interestingly, you can see that a minimize button drawn by the system(DWM?) can be seen in the screenshot just outside the windoe. Some other win32 apps like task manager have it too.But from what I understand it should not be there since we are drawing our own title bar (Using Xaml Islands?). Also, if I try to take a screenshot of only the window by using alt+prtsc, the minimize button does not appear.

I think we should have a minimum size limit like the browsers, or if not, atleast the (caption?) buttons should be fully visible at minimum size.

Originally created by @AnuthaDev on GitHub (Mar 18, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: [Microsoft Windows [Version 10.0.18363.535]] Windows Terminal version (if applicable): 0.10.761.0 ``` # Steps to reproduce Resize the terminal to the minimum size. # Expected behavior Minimize button should be visible/A minimum size limit like other apps: Chrome: ![image](https://user-images.githubusercontent.com/36439704/76931592-048d0c80-690f-11ea-846a-df054bc2561e.png) Credge: ![image](https://user-images.githubusercontent.com/36439704/76931612-1373bf00-690f-11ea-888d-5ab014aa5094.png) Firefox: ![image](https://user-images.githubusercontent.com/36439704/76931681-3900c880-690f-11ea-8d89-d8f54bd7ed9b.png) Notepads: ![image](https://user-images.githubusercontent.com/36439704/76931776-68173a00-690f-11ea-8595-6be26ed0aefb.png) # Actual behavior Just like most win32 apps, the terminal becomes too small(Also look how near the close button is to the edge. Some grid layout issues I guess): ![image](https://user-images.githubusercontent.com/36439704/76932057-05726e00-6910-11ea-84ba-61a10257f641.png) Other programs like explorer, task manager etc show the same behaviour(atleat explorer has a minimum size limit): ![image](https://user-images.githubusercontent.com/36439704/76932401-d6103100-6910-11ea-9f97-d603d7048026.png) ![image](https://user-images.githubusercontent.com/36439704/76932413-df010280-6910-11ea-8376-e86ae2f2295f.png) Interestingly, you can see that a minimize button drawn by the system(DWM?) can be seen in the screenshot just outside the windoe. Some other win32 apps like task manager have it too.But from what I understand it should not be there since we are drawing our own title bar (Using Xaml Islands?). Also, if I try to take a screenshot of only the window by using alt+prtsc, the minimize button does not appear. I think we should have a minimum size limit like the browsers, or if not, atleast the (caption?) buttons should be fully visible at minimum size.
Author
Owner

@DHowett-MSFT commented on GitHub (Mar 18, 2020):

LOL. I can’t believe DWM draws a minimize button outside of our frame. Yeah, we should have a minimum size. Thanks for the report!

@DHowett-MSFT commented on GitHub (Mar 18, 2020): LOL. I can’t believe DWM draws a minimize button outside of our frame. Yeah, we should have a minimum size. Thanks for the report!
Author
Owner

@DHowett-MSFT commented on GitHub (Mar 19, 2020):

Best option would just be to enforce a minimum size.

@DHowett-MSFT commented on GitHub (Mar 19, 2020): Best option would just be to enforce a minimum size.
Author
Owner

@ghost commented on GitHub (May 5, 2020):

:tada:This issue was addressed in #5599, which has now been successfully released as Windows Terminal Release Candidate v0.11.1251.0 (1.0rc1).🎉

Handy links:

@ghost commented on GitHub (May 5, 2020): :tada:This issue was addressed in #5599, which has now been successfully released as `Windows Terminal Release Candidate v0.11.1251.0 (1.0rc1)`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.11.1251.0 (1.0rc1)) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6939