|
@@ -94,7 +94,7 @@ public class ComponentLayout extends FrameLayout implements ReactComponent, Titl
|
94
|
94
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) getLayoutParams();
|
95
|
95
|
int topBarHeight = ViewUtils.getPreferredHeight(topBar);
|
96
|
96
|
if (topBarHeight == 0) {
|
97
|
|
- UiUtils.runOnPreDrawOnce(topBar, () -> layoutParams.topMargin = topBar.getHeight());
|
|
97
|
+ UiUtils.runOnMeasured(topBar, () -> layoutParams.topMargin = topBar.getHeight());
|
98
|
98
|
} else {
|
99
|
99
|
layoutParams.topMargin = topBarHeight;
|
100
|
100
|
}
|