mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
SizeConstraint::Full now defer to requested size if larger than available
This commit is contained in:
parent
349756e514
commit
c0004c54c0
@ -43,7 +43,7 @@ impl SizeConstraint {
|
||||
SizeConstraint::AtLeast(value) if result < value => value,
|
||||
SizeConstraint::AtMost(value) if result > value => value,
|
||||
SizeConstraint::Fixed(value) => value,
|
||||
SizeConstraint::Full => available,
|
||||
SizeConstraint::Full if available > result => available,
|
||||
_ => result,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user