ui-layout-manager-dev 0.0.33-dev → 0.0.35-dev

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-layout-manager-dev",
3
- "version": "0.0.33-dev",
3
+ "version": "0.0.35-dev",
4
4
  "description": "A react component to manage layout and themes in single page applications.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -36,7 +36,9 @@ export const RootContainer = () => {
36
36
  const rootContainerAPI = useRef({});
37
37
  rootContainerAPI.current = {
38
38
  hideLoadingScreen: () => {
39
- setShowLoadingScreen(false);
39
+ if (showLoadingScreen) {
40
+ setShowLoadingScreen(false);
41
+ }
40
42
  }
41
43
  };
42
44
 
@@ -171,7 +171,12 @@ export class LayoutController {
171
171
  };
172
172
  if (isInitial) {
173
173
  this.layoutLoaded = true;
174
- // After initial layout is applied, we can hide the loading screen.
174
+ // Call root resize to apply the layout rules after initial transformations
175
+ // are applied, this applies the layout rules to hide the containers.
176
+ this.handleRootResize();
177
+ } else {
178
+ // After the initial transformations have been applied, we can hide
179
+ // the loading screen for the root container.
175
180
  this.containers[this.ldf.layoutRoot].current.hideLoadingScreen();
176
181
  }
177
182
  });