Size::height sets width not height (#7478)

# Objective
```rust
pub const fn height(width: Val) -> Self {
        Self {
            width,
            height: Val::DEFAULT,
        }
    }
```
😓

## Solution
Swap `width` and `height`.
This commit is contained in:
ickshonpe 2023-02-02 22:09:21 +00:00
parent be46d1502b
commit 00ff8adfd6

View file

@ -374,10 +374,10 @@ impl Size {
}
/// Creates a new [`Size`] where `height` takes the given value.
pub const fn height(width: Val) -> Self {
pub const fn height(height: Val) -> Self {
Self {
width,
height: Val::DEFAULT,
width: Val::DEFAULT,
height,
}
}