-
Notifications
You must be signed in to change notification settings - Fork 29.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
Wrapped tabs are broken on portrait mode in macOS #116385
Comments
@martin-braun can you provide me access to a repository and exact steps for how to reproduce this? We have some conditions under which wrapped tabs will stop to wrap and I wonder if we accidentally hit it here. |
@bpasero It happens with any project. But I experimented a little bit and found the cause of the problem and how it can be reproduced way easier. The issue is related to a custom zoom level and pixel precision, the math gets messed up for the wrapped tabs when the window is not displayed with 100% zoom. This is how it can be reproduced, effectively:
|
OK thanks I will try to reproduce, might be hard. Open for help if anyone wants to chime in and diagnose. |
I think this is entirely related to zooming as it only seems to reproduce with a zoom level of -1. We have a heuristic to disable wrapping tabs when we think that the last tab is large enough that the editor action toolbar is overlapped. With zooming I am seeing some rounding errors when determining this overlap. As a mitigation I pushed a change to allow for up to 1px overlap. vscode/src/vs/workbench/browser/parts/editor/tabsTitleControl.ts Lines 1418 to 1423 in a6fa628
|
/verified |
Testing #114827
The tabs stop being wrapped when opening some files or closing some tabs. The issue appears randomly. I suspect the bug triggers on specific tab widths.
Visual demonstration:
VSCode
macOS v11.2.1 (20D74)
MacBook Pro (16-inch, 2019)
The text was updated successfully, but these errors were encountered: