diff --git a/doric-android/doric/src/main/java/pub/doric/DoricPanel.java b/doric-android/doric/src/main/java/pub/doric/DoricPanel.java index 1ad19a75..c9731feb 100644 --- a/doric-android/doric/src/main/java/pub/doric/DoricPanel.java +++ b/doric-android/doric/src/main/java/pub/doric/DoricPanel.java @@ -66,7 +66,7 @@ public class DoricPanel extends FrameLayout implements LifecycleObserver { public void config(DoricContext doricContext) { mDoricContext = doricContext; mDoricContext.getRootNode().setRootView(this); - if (getMeasuredWidth() != 0 && getMeasuredHeight() != 0) { + if (getMeasuredWidth() != 0 || getMeasuredHeight() != 0) { mDoricContext.build(DoricUtils.px2dp(getMeasuredWidth()), DoricUtils.px2dp(getMeasuredHeight())); } }