Explorar o código

Add widgets before attaching

Steven Silvester %!s(int64=8) %!d(string=hai) anos
pai
achega
54b5a10a04
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      examples/notebook/src/index.ts

+ 2 - 1
examples/notebook/src/index.ts

@@ -155,9 +155,10 @@ function createApp(manager: IServiceManager): void {
   panel.orientation = 'horizontal';
   panel.spacing = 0;
   SplitPanel.setStretch(palette, 0);
-  Widget.attach(panel, document.body);
   panel.addWidget(palette);
   panel.addWidget(nbWidget);
+  Widget.attach(panel, document.body);
+
   SplitPanel.setStretch(nbWidget, 1);
   window.onresize = () => panel.update();