-
Notifications
You must be signed in to change notification settings - Fork 703
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
TabView attempts to set its width to an absurdly small number, excepts #1020
Comments
Thanks, @DHowett-MSFT , can you share a branch/commitSha to check out for a build of terminal that repros this? That would help us debug locally. I'm assigning to @teaP -- she'll be back on wednesday. |
Sure: microsoft/terminal@cc45a50c, branch Incidentally, would the change from is-a ListView to has-a ListView changing the return type of |
Yes, if only so that we don't lose track of it. It should be straightforward to change it, I doubt it was intentional. |
Done; #1021. Thanks! |
I'm not seeing this any more. |
A lot has changed since this bug was filed so if you're not seeing it anymore -- awesome. Let me know if it comes back! |
Describe the bug
microsoft-ui-xaml/dev/TabView/TabView.cpp
Lines 314 to 326 in 6541430
Stepping through these three conditionals during Windows Terminal startup (MUX package version 2.2.190702001-prerelease) shows that each column is "2147000000 pixels wide". When we attempt to derive an
availableWidth
from the width taken and set it, regardless of theTabWidthMode
, we get an "invalid argument" HRESULT.Steps to reproduce the bug
This reproduces in a local dev build of Windows Terminal. I'm not sure how to reproduce it elsewhere.
Expected behavior
Doesn't crash.
Version Info
NuGet package version:
2.2.190702001-prerelease
Additional context
We're not inserting content into any of the TabView's left/add/right columns.
Xaml islands? We've got a window with xaml content in it, so I believe that it's already laid itself out correctly (ActualWidth is 491.00 on line 330 where availableWidth is calculated.)
The text was updated successfully, but these errors were encountered: