rmkit-dev / rmkit

| remarkable app framework | https://rmkit.dev
https://build.rmkit.dev
365 stars 32 forks source link

[simple] Inaccurate information on spec #178

Closed Jayy001 closed 2 years ago

Jayy001 commented 2 years ago

It should be worth noting that on the spec, it doesn't specific that the keywords given are only supported for x, y and not width, height

widgets are specified as their x, y, width and height parameters, followed by zero or more values.

x and y must be an integer or a percentage value or a keyword

w and h must be an integer or a percentage value or a keyword

supported keywords are:

same - keep the same value as the previous item
step - previous item’s coord + the previous item’s size

If you try to use these keyword for width or height it'll spurt out an error about not being able to convert it into an integer

However, width and height do accept one keyword which is w or h - however this is not documented anywhere on the spec so no clue on what it does

raisjn commented 2 years ago

thank you, docs are updated