You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding two TextButton for example in a VerticalStackPanel, giving both a fixed height and the first one a margin-bottom, i expect the buttons to have the same height. However it seems that the Height property includes margins, so the first button ends up being smaller.
While one could argument that this is the box-model myra uses, its super unconvenient because i wont be able to "make all buttons equal heigh". It needs every single buttons height to be calculated with added margin top-bottom.
This is either a bug in the layout formula, or if this is on purpose, i would request a change on how margins are applied. Width / Height should never contain the Margin value.
When adding two TextButton for example in a VerticalStackPanel, giving both a fixed height and the first one a margin-bottom, i expect the buttons to have the same height. However it seems that the Height property includes margins, so the first button ends up being smaller.
While one could argument that this is the box-model myra uses, its super unconvenient because i wont be able to "make all buttons equal heigh". It needs every single buttons height to be calculated with added margin top-bottom.
This is either a bug in the layout formula, or if this is on purpose, i would request a change on how margins are applied. Width / Height should never contain the Margin value.
This strongly reminds me of #376
The text was updated successfully, but these errors were encountered: