-
Notifications
You must be signed in to change notification settings - Fork 266
Create list with limitations/constraints of LabelLayout #123
Comments
@plamenterziev Thanks for your feedbacks. For your |
@plamenterziev Could you please also provide the information how you set the |
@jingwei-huang1 - I am creating the |
@plamenterziev We can definitely mention this issue in the layout's documentation comments. Do you know of a way to come up with an exhaustive list of such issues? In the longer term, I'm considering implementing a Layout that would render text to a layer at measurement time, avoiding any |
@plamenterziev I tried to reproduce the same thing, but I couldn't found the issue. Could you please also provide the code how you set it up? |
LabeLayout relies on
boundingRect
method which does not work in all cases and I think that it would be great from documentation perspective if have a list of all limitations/constraints found so far.I've spent few hours finding out why
boundingRect
does not return valid size and it turned out that it does not work if theNSAttributedString
hasNSParagraphStyle
with line break set toNSLineBreakByTruncatingTail
and the number of lines is 0So here is one issue :)
The text was updated successfully, but these errors were encountered: