Skip to content

Add support for percentage syntax for width and height options.#15

Open
cmanley wants to merge 2 commits intomkdynamic:masterfrom
cmanley:master
Open

Add support for percentage syntax for width and height options.#15
cmanley wants to merge 2 commits intomkdynamic:masterfrom
cmanley:master

Conversation

@cmanley
Copy link
Copy Markdown

@cmanley cmanley commented Sep 3, 2017

Now you can use percentage strings as values for width and height, e.g.:
"80%"
or
"80% of screen"
or
"80% of parent"
To calculate the absolute width/height, the code needs to know percentage of what.
If no "of" is specified, then the string in the option "center" is assumed if set, else it assumes "screen".

Craig Manley added 2 commits September 3, 2017 02:30
Support percentage width and height options such as "80%" or "80% of screen" or "80% of parent"
Updated README with notes about new percentage syntax for width and height.
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