Skip to content

Width

Use this container to enforce additional sizing rules: minimum/maximum/exact width,

// adjust width to specific value
.Width(50)

// set a constraint on the minimum and/or maximum width
.MinWidth(50)
.MaxWidth(100)
// adjust width to specific value
.Width(50)

// set a constraint on the minimum and/or maximum width
.MinWidth(50)
.MaxWidth(100)

DANGER

Please be careful. This component may try to enforce size constraints that are impossible to meet when:

  • requires more space than is available,
  • tries to squeeze its child in less space than necessary.

Such scenarios end up with the layout exception.

Released under the MIT License.