@@ -60,18 +60,18 @@ export class VBoxModel extends BoxModel {
60
60
61
61
export class BoxView extends DOMWidgetView {
62
62
_createElement ( tagName : string ) : HTMLElement {
63
- this . pWidget = new JupyterLuminoPanelWidget ( { view : this } ) ;
64
- return this . pWidget . node ;
63
+ this . lmWidget = new JupyterLuminoPanelWidget ( { view : this } ) ;
64
+ return this . lmWidget . node ;
65
65
}
66
66
67
67
_setElement ( el : HTMLElement ) : void {
68
- if ( this . el || el !== this . pWidget . node ) {
68
+ if ( this . el || el !== this . lmWidget . node ) {
69
69
// Boxes don't allow setting the element beyond the initial creation.
70
70
throw new Error ( 'Cannot reset the DOM element.' ) ;
71
71
}
72
72
73
- this . el = this . pWidget . node ;
74
- this . $el = $ ( this . pWidget . node ) ;
73
+ this . el = this . lmWidget . node ;
74
+ this . $el = $ ( this . lmWidget . node ) ;
75
75
}
76
76
77
77
initialize ( parameters : WidgetView . IInitializeParameters ) : void {
@@ -80,9 +80,9 @@ export class BoxView extends DOMWidgetView {
80
80
this . listenTo ( this . model , 'change:children' , this . update_children ) ;
81
81
this . listenTo ( this . model , 'change:box_style' , this . update_box_style ) ;
82
82
83
- this . pWidget . addClass ( 'jupyter-widgets' ) ;
84
- this . pWidget . addClass ( 'widget-container' ) ;
85
- this . pWidget . addClass ( 'widget-box' ) ;
83
+ this . lmWidget . addClass ( 'jupyter-widgets' ) ;
84
+ this . lmWidget . addClass ( 'widget-container' ) ;
85
+ this . lmWidget . addClass ( 'widget-box' ) ;
86
86
}
87
87
88
88
render ( ) : void {
@@ -98,7 +98,7 @@ export class BoxView extends DOMWidgetView {
98
98
// Notify all children that their sizes may have changed.
99
99
views . forEach ( view => {
100
100
MessageLoop . postMessage (
101
- view . pWidget ,
101
+ view . lmWidget ,
102
102
Widget . ResizeMessage . UnknownSize
103
103
) ;
104
104
} ) ;
@@ -117,13 +117,13 @@ export class BoxView extends DOMWidgetView {
117
117
// we insert a dummy element so the order is preserved when we add
118
118
// the rendered content later.
119
119
const dummy = new Widget ( ) ;
120
- this . pWidget . addWidget ( dummy ) ;
120
+ this . lmWidget . addWidget ( dummy ) ;
121
121
122
122
return this . create_child_view ( model )
123
123
. then ( ( view : DOMWidgetView ) => {
124
124
// replace the dummy widget with the new one.
125
- const i = ArrayExt . firstIndexOf ( this . pWidget . widgets , dummy ) ;
126
- this . pWidget . insertWidget ( i , view . pWidget ) ;
125
+ const i = ArrayExt . firstIndexOf ( this . lmWidget . widgets , dummy ) ;
126
+ this . lmWidget . insertWidget ( i , view . lmWidget ) ;
127
127
dummy . dispose ( ) ;
128
128
return view ;
129
129
} )
@@ -137,6 +137,7 @@ export class BoxView extends DOMWidgetView {
137
137
138
138
children_views : ViewList < DOMWidgetView > | null ;
139
139
pWidget : JupyterLuminoPanelWidget ;
140
+ lmWidget : JupyterLuminoPanelWidget ;
140
141
141
142
static class_map = {
142
143
success : [ 'alert' , 'alert-success' ] ,
@@ -152,7 +153,7 @@ export class HBoxView extends BoxView {
152
153
*/
153
154
initialize ( parameters : WidgetView . IInitializeParameters ) : void {
154
155
super . initialize ( parameters ) ;
155
- this . pWidget . addClass ( 'widget-hbox' ) ;
156
+ this . lmWidget . addClass ( 'widget-hbox' ) ;
156
157
}
157
158
}
158
159
@@ -162,7 +163,7 @@ export class VBoxView extends BoxView {
162
163
*/
163
164
initialize ( parameters : WidgetView . IInitializeParameters ) : void {
164
165
super . initialize ( parameters ) ;
165
- this . pWidget . addClass ( 'widget-vbox' ) ;
166
+ this . lmWidget . addClass ( 'widget-vbox' ) ;
166
167
}
167
168
}
168
169
@@ -172,9 +173,9 @@ export class GridBoxView extends BoxView {
172
173
*/
173
174
initialize ( parameters : WidgetView . IInitializeParameters ) : void {
174
175
super . initialize ( parameters ) ;
175
- this . pWidget . addClass ( 'widget-gridbox' ) ;
176
+ this . lmWidget . addClass ( 'widget-gridbox' ) ;
176
177
// display needn't be set to flex and grid
177
- this . pWidget . removeClass ( 'widget-box' ) ;
178
+ this . lmWidget . removeClass ( 'widget-box' ) ;
178
179
}
179
180
}
180
181
0 commit comments