Skip to content

Commit

Permalink
Add default values to LayoutContext default creator
Browse files Browse the repository at this point in the history
  • Loading branch information
salvadorcarvalhinho committed Apr 3, 2024
1 parent a94cc7e commit 913a370
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_ui/src/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ pub struct LayoutContext {
impl LayoutContext {
fn default() -> Self {
Self {
scale_factor: 1.0,
scale_factor: default(),
physical_size: Vec2::ZERO,
min_size: 0.0,
max_size: 0.0,
min_size: default(),
max_size: default(),
}
}
/// create new a [`LayoutContext`] from the window's physical size and scale factor
Expand Down

0 comments on commit 913a370

Please sign in to comment.