-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Remaining tabs are not resized when closing tabs #9822
Comments
I understand the tabs remain fixed in size until the mouse leaves the tab bar like what was mentioned in #8030, but this makes no sense when closing tabs with the keyboard or even when just exiting shells while the mouse is nowhere near the tab bar. |
We suspect that this is an issue with MUX 2.5 :| |
Should I report this issue at microsoft/microsoft-ui-xaml or hold off until you are sure? |
Oh, sorry -- I'll move this issue report over there. I wasn't very clear on that. :) |
Thank you! And thanks for Windows Terminal, it's awesome! :) |
I've moved this upstream to /dup microsoft/microsoft-ui-xaml#4971. Thanks! |
Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report! |
@zadjii-msft Hi again, this was finally supposed to get fixed with #10508 and #11240 in v1.12.2922.0 but I'm trying it in v1.12.2931.0 and it is not fixed. Tabs still remain compacted when closing using only the keyboard and I still have to mouse over the tab bar to make them snap back to the expected size. |
What the heck, you're right. This was tracked in microsoft/microsoft-ui-xaml#4971, which was supposed to be fixed in microsoft/microsoft-ui-xaml#4980. Maybe the fix was literally only for the built in keyboard shortcut for closing tabs, ctrl+f4, which I don't think we even use at all. |
Closing a tab via the close button is not suppose to resize the tabs until you move your cursor outside of the tab strip. This is so you can close many tabs by quickly pressing your mouse button as the tabs animate under your cursor. The bug here is that when a tab closes we assume that the pointer is over the tab strip and wait until the next pointer exited event to resize the tabs. The correct solution is to resize the tabs immediately if the pointer is not over the items. |
closed via microsoft/microsoft-ui-xaml#6160 |
@beervoley Are we sure that microsoft/microsoft-ui-xaml#6160 fixed this? I just whipped up a Terminal build with 2.8 and this doesn't seem like it's fixed. (the numberbox at the start of the gif shows that I've definitely got 2.8, b/c #13495 is fixed) As I close tabs, they still don't seem to resize. Maybe it's a side effect of how we're removing the tab items from the list? terminal/src/cascadia/TerminalApp/TabManagement.cpp Lines 532 to 534 in 7976e48
But that seems... pretty straightforward. |
IDK why I looked at this, the email cought my eye, but this is also not correct: https://github.com/microsoft/microsoft-ui-xaml/blob/9670f769069535175490ee611e8a1ddf3fffd094/dev/TabView/TabView.cpp#L780 It means that if your mouse happens to be over tab item one in the tab strip when you use keyboard to close tab 7 they wont resize. I don't think its the issue you are seeing though @zadjii-msft. @ranjeshj |
yup, seeing the same |
I didn't see anything wrong with my cursory review, but maybe has to do with xaml island stuff? maybe we don't get a pointer exited because the tab well goes to the edge of the island? |
@ranjeshj the fix for this particular problem (not when cursor is still over tabs and a tab is closed via keyboard) is to change line 782 to
|
Upstream: microsoft/microsoft-ui-xaml#8358 |
Windows Terminal version (or Windows build number)
1.8.1032.0
Other Software
No response
Steps to reproduce
Open a bunch of tabs, close all but a few with the keyboard.
Expected Behavior
I expect tabs to be restored to their original size when the space allows for it.
Actual Behavior
Tabs remain compacted indefinitely. The only way to get the tabs back to their expected size seems to be to grab the mouse and hover over the tab bar and then move the mouse off the tab bar again.
The text was updated successfully, but these errors were encountered: