Added "border" CSS shorthand.

Fixed "background" CSS shorthand parsing.
All UI Widgets emit "OnClose" event when being destroyed.
Minor fixes in UIDropDownList and UIImage.
Added aliases for "layout_width" -> "lw", "layout_height" -> "lh", "layout_weight" -> "lw8". And for "wrap_content" -> "wc" and "match_parent" -> "mp".
This commit is contained in:
Martín Lucas Golini
2022-08-22 01:52:48 -03:00
parent 55c63e3dbc
commit 5ca4fa2a88
10 changed files with 81 additions and 27 deletions

View File

@@ -856,7 +856,7 @@ or one of the special constants.
* `match_parent`: The element must be as big as its parent.
* `wrap_content`: The element should be only big enough to enclose its content (plus padding).
* Default value: `wrap_content`
* Aliases: `layout_height`
* Aliases: `layout_height`, `lh`
---
@@ -928,7 +928,7 @@ layout weight.
* Applicable to: Any element child of a EE::UI::UILinearLayout (LinearLayout)
* Data Type: [number](#number-data-type) (normalized from `0` to `1`)
* Default value: `0`
* Aliases: `layout_weight`
* Aliases: `layout_weight`, `lw8`
---
@@ -946,7 +946,7 @@ or one of the special constants.
* `match_parent`: The element must be as big as its parent.
* `wrap_content`: The element should be only big enough to enclose its content (plus padding).
* Default value: `wrap_content`
* Aliases: `layout_width`
* Aliases: `layout_width`, `lw`
---
@@ -2067,6 +2067,13 @@ Read [background-position](https://developer.mozilla.org/en-US/docs/Web/CSS/back
---
### border
Read [border](https://developer.mozilla.org/en-US/docs/Web/CSS/border) documentation.
`border-style` is not implemented yet.
---
### border-color
Read [border-color](https://developer.mozilla.org/en-US/docs/Web/CSS/border-color) documentation.