|
|
|
@ -267,7 +267,7 @@ pub enum Constraint {
|
|
|
|
|
MaxLessThanScreenHeight(u16),
|
|
|
|
|
MaxLessThanScreenWidth(u16),
|
|
|
|
|
MaxLessThanLayoutHeight(u16),
|
|
|
|
|
MaxthLessThanLayoutWidth(u16),
|
|
|
|
|
MaxLessThanLayoutWidth(u16),
|
|
|
|
|
Min(u16),
|
|
|
|
|
MinLessThanScreenHeight(u16),
|
|
|
|
|
MinLessThanScreenWidth(u16),
|
|
|
|
@ -297,7 +297,7 @@ impl Constraint {
|
|
|
|
|
Self::MaxLessThanScreenHeight(n) => TuiConstraint::Max(screen_size.height.max(n) - n),
|
|
|
|
|
Self::MaxLessThanScreenWidth(n) => TuiConstraint::Max(screen_size.width.max(n) - n),
|
|
|
|
|
Self::MaxLessThanLayoutHeight(n) => TuiConstraint::Max(layout_size.height.max(n) - n),
|
|
|
|
|
Self::MaxthLessThanLayoutWidth(n) => TuiConstraint::Max(layout_size.width.max(n) - n),
|
|
|
|
|
Self::MaxLessThanLayoutWidth(n) => TuiConstraint::Max(layout_size.width.max(n) - n),
|
|
|
|
|
Self::Min(n) => TuiConstraint::Min(n),
|
|
|
|
|
Self::MinLessThanScreenHeight(n) => TuiConstraint::Min(screen_size.height.max(n) - n),
|
|
|
|
|
Self::MinLessThanScreenWidth(n) => TuiConstraint::Min(screen_size.width.max(n) - n),
|
|
|
|
|