Skip to content

Added dimension types to height/width attribute - #538

Open
CarsonDDD wants to merge 4 commits into
MyraUI:masterfrom
CarsonDDD:DimensionType
Open

Added dimension types to height/width attribute#538
CarsonDDD wants to merge 4 commits into
MyraUI:masterfrom
CarsonDDD:DimensionType

Conversation

@CarsonDDD

Copy link
Copy Markdown

Currently, the width/height are limited to pixels. While this is good, often time when writing UI code (similar to MML) it is helpful to use percentages of the parent container.

In this I have made it so the dimension type of height/width is explicitly stated and controlled.

The types now available are:

  • "auto": explicit the old null/default value of wrapping.
  • "fill"
    -"ZZ%" percentage of parent space
  • "ZZpx"

If none is given, it will default to using pixels. This means it works on existing layouts.

Types are case insensitive.

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 this pull request may close these issues.

1 participant