@onehat/ui 0.3.245 → 0.3.246
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/package.json
CHANGED
|
@@ -204,7 +204,7 @@ function Container(props) {
|
|
|
204
204
|
componentProps.setIsCollapsed = setIsNorthCollapsed || setLocalIsNorthCollapsed;
|
|
205
205
|
componentProps.onLayout = (e) => {
|
|
206
206
|
const height = parseFloat(e.nativeEvent.layout.height);
|
|
207
|
-
if (height !== northHeight) {
|
|
207
|
+
if (height && height !== northHeight) {
|
|
208
208
|
setNorthHeight(height);
|
|
209
209
|
}
|
|
210
210
|
};
|
|
@@ -228,7 +228,7 @@ function Container(props) {
|
|
|
228
228
|
componentProps.setIsCollapsed = setIsSouthCollapsed || setLocalIsSouthCollapsed;
|
|
229
229
|
componentProps.onLayout = (e) => {
|
|
230
230
|
const height = parseFloat(e.nativeEvent.layout.height);
|
|
231
|
-
if (height !== southHeight) {
|
|
231
|
+
if (height && height !== southHeight) {
|
|
232
232
|
setSouthHeight(height);
|
|
233
233
|
}
|
|
234
234
|
};
|
|
@@ -252,7 +252,7 @@ function Container(props) {
|
|
|
252
252
|
componentProps.setIsCollapsed = setIsEastCollapsed || setLocalIsEastCollapsed;
|
|
253
253
|
componentProps.onLayout = (e) => {
|
|
254
254
|
const width = parseFloat(e.nativeEvent.layout.width);
|
|
255
|
-
if (width !== eastWidth) {
|
|
255
|
+
if (width && width !== eastWidth) {
|
|
256
256
|
setEastWidth(width);
|
|
257
257
|
}
|
|
258
258
|
};
|
|
@@ -276,7 +276,7 @@ function Container(props) {
|
|
|
276
276
|
componentProps.setIsCollapsed = setIsWestCollapsed || setLocalIsWestCollapsed;
|
|
277
277
|
componentProps.onLayout = (e) => {
|
|
278
278
|
const width = parseFloat(e.nativeEvent.layout.width);
|
|
279
|
-
if (width !== westWidth) {
|
|
279
|
+
if (width && width !== westWidth) {
|
|
280
280
|
setWestWidth(width);
|
|
281
281
|
}
|
|
282
282
|
};
|
|
@@ -26,6 +26,7 @@ function ManagerScreen(props) {
|
|
|
26
26
|
styles = UiGlobals.styles,
|
|
27
27
|
id = props.id || props.self?.path,
|
|
28
28
|
[isRendered, setIsRendered] = useState(false),
|
|
29
|
+
[isModeSet, setIsModeSet] = useState(false),
|
|
29
30
|
[allowSideBySide, setAllowSideBySide] = useState(false),
|
|
30
31
|
[mode, setModeRaw] = useState(MODE_FULL),
|
|
31
32
|
setMode = (newMode) => {
|
|
@@ -63,6 +64,7 @@ function ManagerScreen(props) {
|
|
|
63
64
|
setMode(val);
|
|
64
65
|
}
|
|
65
66
|
}
|
|
67
|
+
setIsModeSet(true);
|
|
66
68
|
})();
|
|
67
69
|
}, [isRendered]);
|
|
68
70
|
|
|
@@ -81,7 +83,7 @@ function ManagerScreen(props) {
|
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
return <Column maxHeight="100vh" overflow="hidden" flex={1} w="100%" onLayout={onLayout}>
|
|
84
|
-
{isRendered &&
|
|
86
|
+
{isRendered && isModeSet &&
|
|
85
87
|
<>
|
|
86
88
|
<Row
|
|
87
89
|
h="80px"
|