## Objective A common easy to miss mistake is to write something like: ``` rust Size::new(Val::Percent(100.), Val::Px(100.)); ``` `UiRect` has the `left`, `right`, `all`, `vertical`, etc constructor functions, `Size` is used a lot more frequently but lacks anything similar. ## Solution Implement `all`, `width` and `height` functions for `Size`. ## Changelog * Added `all`, `width` and `height` functions to `Size`. |
||
|---|---|---|
| .. | ||
| button.rs | ||
| font_atlas_debug.rs | ||
| relative_cursor_position.rs | ||
| text_debug.rs | ||
| text_layout.rs | ||
| text.rs | ||
| transparency_ui.rs | ||
| ui_scaling.rs | ||
| ui.rs | ||
| window_fallthrough.rs | ||
| z_index.rs | ||