File tree 2 files changed +20
-6
lines changed 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change
1
+ .vp-mg-container {
2
+ width : 700px ;
3
+ height : 550px ;
4
+ }
Original file line number Diff line number Diff line change @@ -62,8 +62,6 @@ define([
62
62
63
63
this . previewOpened = false ;
64
64
this . codepreview = undefined ;
65
-
66
- this . state = { } ;
67
65
}
68
66
69
67
//====================================================================
@@ -116,17 +114,29 @@ define([
116
114
$ ( this . _wrapSelector ( ) ) . remove ( ) ;
117
115
}
118
116
119
- init ( ) {
120
- vpCommon . loadCss ( Jupyter . notebook . base_url + vpConst . BASE_PATH + vpConst . STYLE_PATH + 'common/popupPage.css' ) ;
117
+ init ( state = undefined ) {
118
+ this . state = {
121
119
122
- this . render ( ) ;
120
+ }
121
+
122
+ // load state
123
+ if ( state ) {
124
+ this . state = {
125
+ ...this . state ,
126
+ ...state
127
+ } ;
128
+ }
129
+
123
130
this . bindEvent ( ) ;
131
+ this . render ( ) ;
132
+ vpCommon . loadCssForDiv ( this . _wrapSelector ( ) , Jupyter . notebook . base_url + vpConst . BASE_PATH + vpConst . STYLE_PATH + 'common/popupPage.css' ) ;
133
+ vpCommon . loadCssForDiv ( this . _wrapSelector ( ) , Jupyter . notebook . base_url + vpConst . BASE_PATH + vpConst . STYLE_PATH + 'common/merge.css' ) ;
124
134
}
125
135
126
136
render ( ) {
127
137
var page = new sb . StringBuilder ( ) ;
128
138
page . appendFormatLine ( '<div class="{0} {1}">' , APP_PREFIX , this . uuid ) ;
129
- page . appendFormatLine ( '<div class="{0}">' , APP_CONTAINER ) ;
139
+ page . appendFormatLine ( '<div class="{0} {1} ">' , APP_CONTAINER , 'vp-mg-container' ) ;
130
140
131
141
// title
132
142
page . appendFormat ( '<div class="{0}">{1}</div>' ,
You can’t perform that action at this time.
0 commit comments