File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,6 @@ export class Label extends LabelBase {
401
401
402
402
const height = layout . getMeasureSpecSize ( heightMeasureSpec ) ;
403
403
const heightMode = layout . getMeasureSpecMode ( heightMeasureSpec ) ;
404
-
405
404
if ( this . autoFontSize ) {
406
405
this . textViewDidChange (
407
406
nativeView ,
@@ -818,7 +817,10 @@ export class Label extends LabelBase {
818
817
819
818
textViewDidChange ( textView : UITextView , width ?, height ?) {
820
819
if ( this . autoFontSize ) {
821
- if ( ( ! textView . attributedText && ! textView . text ) || CGSizeEqualToSize ( textView . bounds . size , CGSizeZero ) ) {
820
+ if (
821
+ ( ! textView . attributedText && ! textView . text ) ||
822
+ ( width === undefined && height === undefined && CGSizeEqualToSize ( textView . bounds . size , CGSizeZero ) )
823
+ ) {
822
824
return ;
823
825
}
824
826
const nbLines = textView . textContainer . maximumNumberOfLines ;
You can’t perform that action at this time.
0 commit comments