Skip to content

Margin is handled wrong. #385

Open
@IceReaper

Description

@IceReaper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions