You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What problem does this solve or what need does it fill?
We used to have generic Size and Rect types, but they were specialized (for good reasons IMO).
But it's left some ergonomic friction, especially with measures which take separate width and height Option<f32> and AvailableSpace values which be much cleaner with a generic size type that has map and zip methods like Taffy's Size type .
Also, it would be nice to have some sort of GenericSize<Physical> and GenericSize<Logical> for dealing with window resolutions and scalings.
What solution would you like?
Size could be renamed to UiSize and then name the new generic type Size. UiSize is a bit ugly though.
Otherwise, none of the alternative names I came up with like Dimensions, Extent, Measurements, etc seem super intuitive.
Maybe just Size2 would be okay?
The text was updated successfully, but these errors were encountered:
# Objective
- Simplify API and make authoring styles easier
See:
#8540 (comment)
## Solution
- The `size`, `min_size`, `max_size`, and `gap` properties have been
replaced by `width`, `height`, `min_width`, `min_height`, `max_width`,
`max_height`, `row_gap`, and `column_gap` properties
---
## Changelog
- Flattened `Style` properties that have a `Size` value directly into
`Style`
## Migration Guide
- The `size`, `min_size`, `max_size`, and `gap` properties have been
replaced by the `width`, `height`, `min_width`, `min_height`,
`max_width`, `max_height`, `row_gap`, and `column_gap` properties. Use
the new properties instead.
---------
Co-authored-by: ickshonpe <david.curthoys@googlemail.com>
What problem does this solve or what need does it fill?
We used to have generic
Size
andRect
types, but they were specialized (for good reasons IMO).But it's left some ergonomic friction, especially with measures which take separate width and height
Option<f32>
andAvailableSpace
values which be much cleaner with a generic size type that hasmap
andzip
methods like Taffy'sSize
type .Also, it would be nice to have some sort of
GenericSize<Physical>
andGenericSize<Logical>
for dealing with window resolutions and scalings.What solution would you like?
Size
could be renamed toUiSize
and then name the new generic typeSize
.UiSize
is a bit ugly though.Otherwise, none of the alternative names I came up with like
Dimensions
,Extent
,Measurements
, etc seem super intuitive.Maybe just
Size2
would be okay?The text was updated successfully, but these errors were encountered: