Skip to content
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

Resized windows do not adjust their fields width both ways #1642

Closed
RychuP opened this issue Nov 18, 2024 · 2 comments · Fixed by vchelaru/Gum#268
Closed

Resized windows do not adjust their fields width both ways #1642

RychuP opened this issue Nov 18, 2024 · 2 comments · Fixed by vchelaru/Gum#268
Assignees

Comments

@RychuP
Copy link
Contributor

RychuP commented Nov 18, 2024

I resized the Variables window and expected the fields to change their width to accommodate new window size and they did, but only one way: they got longer, never shorter. Expected behaviour: field length in a window resizes with the window both ways. Selecting a different item in the Explorer and returning to Variables makes the fields return to their normal size.

windoresizingissue

@RychuP RychuP changed the title Resized windows do not adjust their fields' width automatically Resized windows do not adjust their fields width both ways Nov 18, 2024
@vchelaru
Copy link
Owner

A bit of history on this bug. Initially, the size of a window depended on the contents of the "hint" text. This was causing very long scroll bars. To address this, I made a hacky width relationship between the hint text and the "top grid" which is where the main control was held. It works, in that it produces the results you see here.

I have no idea how to fully fix it and I spent a bit of time on it. I'll assign our resident WPF expert @vicdotexe on this, if he has time and if it's not too complicated maybe he can solve it.

@RychuP
Copy link
Contributor Author

RychuP commented Nov 18, 2024

It's not a huge issue at all. As always, I am just letting you know what I came across.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants