File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,12 @@ ClassView.prototype.render = function (data) {
131
131
132
132
this . updateSizes ( ) ;
133
133
134
+ var bb = this . paper . getContentBBox ( ) , q = this . paper ;
135
+ this . paper . setOrigin (
136
+ q . options . width / 2 - bb . width / 2 ,
137
+ q . options . height / 2 - Math . min ( q . options . height / 2 - 100 , bb . height / 2 )
138
+ ) ;
139
+
134
140
} ;
135
141
136
142
ClassView . prototype . loadClass = function ( className ) {
@@ -139,7 +145,7 @@ ClassView.prototype.loadClass = function (className) {
139
145
140
146
this . showLoader ( ) ;
141
147
this . cacheUMLExplorer . source . getClassView ( className , function ( err , data ) {
142
- console . log ( data ) ;
148
+ // console.log(data);
143
149
self . removeLoader ( ) ;
144
150
if ( err ) {
145
151
self . showLoader ( "Unable to get " + self . cacheUMLExplorer . classTree . SELECTED_CLASS_NAME ) ;
You can’t perform that action at this time.
0 commit comments