diff --git a/src/layout/constraint.rs b/src/layout/constraint.rs index 63a42ee6..972a992c 100644 --- a/src/layout/constraint.rs +++ b/src/layout/constraint.rs @@ -116,8 +116,12 @@ pub enum Constraint { /// Applies a percentage of the available space to the element /// - /// Converts the given percentage to a floating-point value and multiplies that with area. - /// This value is rounded back to a integer as part of the layout split calculation. + /// Converts the given percentage to a floating-point value and multiplies that with area. This + /// value is rounded back to a integer as part of the layout split calculation. + /// + /// **Note**: As this value only accepts a `u16`, certain percentages that cannot be + /// represented exactly (e.g. 1/3) are not possible. You might want to use + /// [`Constraint::Ratio`] or [`Constraint::Fill`] in such cases. /// /// # Examples ///