Skip to content

Commit 528ccb9

Browse files
committed
fix(ios): verticalTextAlignment fix
1 parent 8cdfb1f commit 528ccb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/label.ios.ts

+2
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ export class Label extends LabelBase {
415415
const height = Utils.layout.getMeasureSpecSize(heightMeasureSpec);
416416
const heightMode = Utils.layout.getMeasureSpecMode(heightMeasureSpec);
417417
let resetFont;
418+
// reset insent or it will taken into account for measurement
419+
this.updateVerticalAlignment(false);
418420
if (this.autoFontSize) {
419421
const finiteWidth = widthMode === Utils.layout.EXACTLY;
420422
const finiteHeight = heightMode === Utils.layout.EXACTLY;

0 commit comments

Comments
 (0)