File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/backend/src/anywidget Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,6 @@ function makeDatabaseConnector(model: AnyModel<Model>) {
5454const initialize : Initialize < Model > = ( view ) => { } ;
5555
5656const render : Render < Model > = ( view ) => {
57- view . el . classList . add ( "mosaic-widget" ) ;
58-
5957 const coordinator = new Coordinator ( ) ;
6058 coordinator . databaseConnector ( makeDatabaseConnector ( view . model ) ) ;
6159
@@ -83,12 +81,14 @@ const render: Render<Model> = (view) => {
8381 }
8482
8583 // Configure view style
86- view . el . style . height = "650px" ;
87- view . el . style . resize = "vertical" ;
88- view . el . style . overflow = "auto" ;
84+ let container = document . createElement ( "div" ) ;
85+ container . style . height = "650px" ;
86+ container . style . resize = "vertical" ;
87+ container . style . overflow = "auto" ;
88+ view . el . replaceChildren ( container ) ;
8989
9090 // Create the component
91- const component = new EmbeddingAtlas ( view . el , getProps ( ) ) ;
91+ const component = new EmbeddingAtlas ( container , getProps ( ) ) ;
9292
9393 return ( ) => {
9494 component . destroy ( ) ;
You can’t perform that action at this time.
0 commit comments