@flemo/react 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -969,9 +969,9 @@ function $({ children: e, statusBarHeight: t, statusBarColor: n, systemNavigatio
|
|
|
969
969
|
P(0);
|
|
970
970
|
return;
|
|
971
971
|
}
|
|
972
|
-
P(e.offsetHeight);
|
|
972
|
+
e.offsetHeight > 0 && P(e.offsetHeight);
|
|
973
973
|
let t = new ResizeObserver(([e]) => {
|
|
974
|
-
P(e.contentRect.height);
|
|
974
|
+
e.contentRect.height > 0 && P(e.contentRect.height);
|
|
975
975
|
});
|
|
976
976
|
return t.observe(e), () => {
|
|
977
977
|
t.disconnect();
|
|
@@ -982,9 +982,9 @@ function $({ children: e, statusBarHeight: t, statusBarColor: n, systemNavigatio
|
|
|
982
982
|
ge(0);
|
|
983
983
|
return;
|
|
984
984
|
}
|
|
985
|
-
ge(e.offsetHeight);
|
|
985
|
+
e.offsetHeight > 0 && ge(e.offsetHeight);
|
|
986
986
|
let t = new ResizeObserver(([e]) => {
|
|
987
|
-
ge(e.contentRect.height);
|
|
987
|
+
e.contentRect.height > 0 && ge(e.contentRect.height);
|
|
988
988
|
});
|
|
989
989
|
return t.observe(e), () => {
|
|
990
990
|
t.disconnect();
|