This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
heightToFit
and widthToFit
enhancements
#11
Labels
heightToFit
and widthToFit
enhancements
#11
Problem:
Have the following code:
This code has one problem:
heightToFit
doesn't take into account theleft
andright
relations - the height of the label will be as for a one-line label.Conclusion:
Need to consider specific relations such as
left
andright
together,width
andwidth(to:)
.P.S. The similar for
widthToFit
.P.S.
widthThatFits
andheightThatFits
will have the similar logic only with a max setted value.The text was updated successfully, but these errors were encountered: