@topconsultnpm/sdkui-react 6.20.0-dev1.116 → 6.20.0-dev1.117
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.
|
@@ -107,11 +107,19 @@ export const TMPanelManagerProvider = (props) => {
|
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
else {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
110
|
+
if (isPersistenceEnabled) {
|
|
111
|
+
// If persistence is enabled, visibility and dimensions are already synced from persisted state, so just set them directly
|
|
112
|
+
setPanelVisibility(initialVisibility);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
// If persistence is not enabled, recalculate visibility and dimensions based on the initial visibility, applying the hierarchy logic
|
|
116
|
+
let updated = { ...initialVisibility };
|
|
117
|
+
Object.entries(initialVisibility).forEach(([id, isVisible]) => {
|
|
118
|
+
updated = adjustPanelVisibilityAndSize(id, isVisible, updated);
|
|
119
|
+
});
|
|
120
|
+
// Update panel visibility state with recalculated values
|
|
121
|
+
setPanelVisibility(updated);
|
|
122
|
+
}
|
|
115
123
|
}
|
|
116
124
|
}, [isMobile]);
|
|
117
125
|
// Function to maximize a panel (and its parent panels)
|