File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ export class WidgetManager extends HTMLManager {
162
162
model . comm_live = true
163
163
}
164
164
165
- async render ( bundle : ModelBundle , el : HTMLElement ) : Promise < WidgetView | null > {
165
+ async render ( bundle : ModelBundle , el : HTMLElement , onDisplay : ( ) => void ) : Promise < WidgetView | null > {
166
166
const { spec, state} = bundle
167
167
const new_models = state . state
168
168
for ( const [ id , new_model ] of entries ( new_models ) ) {
@@ -190,6 +190,7 @@ export class WidgetManager extends HTMLManager {
190
190
}
191
191
192
192
const view = await this . create_view ( model , { el} )
193
+ view . on ( "displayed" , onDisplay )
193
194
await this . display_view ( view , el )
194
195
return view
195
196
} finally {
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export class IPyWidgetView extends LayoutDOMView {
86
86
const manager = widget_managers . get ( document )
87
87
assert ( manager != null , "manager is null" )
88
88
89
- this . ipy_view = await manager . render ( this . model . bundle , this . container )
89
+ this . ipy_view = await manager . render ( this . model . bundle , this . container , ( ) => this . invalidate_layout ( ) )
90
90
} else {
91
91
this . container . append ( this . ipy_view . el )
92
92
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ module.exports = (env={}, argv={}) => {
34
34
}
35
35
] ,
36
36
module : { rules} ,
37
- devtool : minimize ? false : " source-map" ,
37
+ devtool : mode === "development" ? 'inline- source-map' : false ,
38
38
mode,
39
39
optimization : { minimize} ,
40
40
}
You can’t perform that action at this time.
0 commit comments