MDHTMLLabel icon indicating copy to clipboard operation
MDHTMLLabel copied to clipboard

Does htmlText support multiple lines like text ?

Open zhouhao27 opened this issue 9 years ago • 4 comments

It's a great component. But I found the htmlText doesn't work the same way as the text does. It seems the multiple lines is supported but the auto shrink is not supported. Do I miss something? Thanks

zhouhao27 avatar Jul 18 '14 02:07 zhouhao27

It does support auto shrink but you need to specify the height of the label's frame (by setting it's rect or using Auto Layout) in order for it work

mattdonnelly avatar Jul 18 '14 15:07 mattdonnelly

If I need to set the frame manually, then it's not auto shrink. Am I right?

The AutoShrink for the text of label is to shrink based on the minimum scale factor or minimum font size. The height of the label won't be changed.

zhouhao27 avatar Jul 20 '14 02:07 zhouhao27

Yes, it doesn't affect the height of the label, but auto shrink won't work if the frame of label is flexible based on the content

mattdonnelly avatar Jul 20 '14 13:07 mattdonnelly

Yes. AutoShrink does not work for me, too. For example, putting html like . Is a bug.

josluimg avatar Jan 27 '15 16:01 josluimg