Skip to content

Conversation

@tjamaan
Copy link
Contributor

@tjamaan tjamaan commented Nov 23, 2025

Clarify the value range for GridTrack::percent() since it doesn't follow the usual 0.0 to 1.0 range and instead uses 0.0 to 100.0.

Minor documentation change with no change to code, tests, or examples.

Clarify the value range for GridTrack::percent() since it doesn't follow the usual 0.0 to 1.0 range and instead uses 0.0 to 100.0.
}

/// 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.

@ickshonpe ickshonpe added D-Trivial Nice and easy! A great choice to get started with Bevy A-UI Graphical user interfaces, styles, layouts, and widgets S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged C-Docs An addition or correction to our documentation labels Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-UI Graphical user interfaces, styles, layouts, and widgets C-Docs An addition or correction to our documentation D-Trivial Nice and easy! A great choice to get started with Bevy S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants