Skip to content

Commit

Permalink
fix(android): update layout for first child of DialogRootView
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 authored and siguangli committed Oct 19, 2023
1 parent 4e61294 commit 0f6a9a9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,10 @@ protected void onSizeChanged(final int w, final int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
if (getContext() instanceof NativeRenderContext) {
NativeRender nativeRenderer = NativeRendererManager.getNativeRenderer(getContext());
if (nativeRenderer != null) {
if (nativeRenderer != null && getChildCount() > 0) {
final int id = getChildAt(0).getId();
final int rootId = ((NativeRenderContext) getContext()).getRootId();
nativeRenderer.onSizeChanged(rootId, getId(), w, h, false);
nativeRenderer.onSizeChanged(rootId, id, w, h, false);
}
}
}
Expand Down

0 comments on commit 0f6a9a9

Please sign in to comment.