File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -827,9 +827,9 @@ export class Label extends LabelBase {
827
827
}
828
828
829
829
const textViewSize = textView . frame . size ;
830
- const fixedWidth = width || textViewSize . width ;
831
- const fixedHeight = height || textViewSize . height ;
832
- if ( fixedWidth === 0 && fixedHeight === 0 ) {
830
+ const fixedWidth = width !== undefined ? width : textViewSize . width ;
831
+ const fixedHeight = height !== undefined ? height : textViewSize . height ;
832
+ if ( fixedWidth === 0 || fixedHeight === 0 ) {
833
833
return ;
834
834
}
835
835
const nbLines = textView . textContainer . maximumNumberOfLines ;
@@ -895,7 +895,7 @@ export class Label extends LabelBase {
895
895
}
896
896
}
897
897
[ autoFontSizeProperty . setNative ] ( value : boolean ) {
898
- if ( value && this . text ) {
898
+ if ( value && ( this . text || this . html ) ) {
899
899
this . textViewDidChange ( this . nativeTextViewProtected ) ;
900
900
} else {
901
901
this [ fontInternalProperty . setNative ] ( this . style . fontInternal ) ;
You can’t perform that action at this time.
0 commit comments