Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/bevy_ui/src/ui_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,7 @@ impl GridTrack {
}

/// Create a grid track with a percentage size
/// Note that the percentage is represented as a value from 0.0 to 100.0
Copy link
Contributor

@ickshonpe ickshonpe Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is good, but the comment text needs to be reworked a bit. It would be easy to misinterpret this as implying that the function only accepts values in the range 0.0 to 100.0, which isn't correct.

pub fn percent<T: From<Self>>(value: f32) -> T {
Self {
min_sizing_function: MinTrackSizingFunction::Percent(value),
Expand Down
Loading