-
Notifications
You must be signed in to change notification settings - Fork 700
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
Must set AutoSize to false before setting Width #3366
Comments
This is temporary, but only because AutoSize is going away once I finish The reason this is in there now is before AutoSize was not deterministic w.r.t. when/where Height/Width got set. I refactored the code in #3202 to simplify it ahead of finishing Before setting those properties if AutoSize is on was supposed to work, but didn't really. Now setting those properties if AutoSize is on is an error. |
So the new way to autosize is going to be |
The only built-in views that enable AutoSize = true are Button and Label. |
So we should set AutoSize to false prior to adjusting Height or Width of either of these elements? My entire application locks up if I tinker with an element's height or width it seems. |
Correct. |
Fixes #3366 - Add ability to disable AutoSize
I get this exception a lot now when trying to upgrade TGD. Is it a temporary measure?
It seems like this is an attempt to prevent two conflicting sizing mechanisms (auto and Width). If it is here to stay then why instead not just make AutoSize a
Dim
e.g.If it were a Dim then it wouldn't be possible to set both, Width would either be auto or other.
Maybe a View has to implement
IAutoSizeable
or something to support this approach.The text was updated successfully, but these errors were encountered: