vchelaru / FlatRedBall

Cross-platform 2D game engine focused on ultimate productivity built in .NET
http://flatredball.com
MIT License
413 stars 66 forks source link

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

Open RychuP opened 5 days ago

RychuP commented 5 days ago

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

vchelaru commented 5 days ago

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 commented 5 days ago

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