We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e87d1f1 commit efcaf8dCopy full SHA for efcaf8d
1 file changed
web/js/ClassView.js
@@ -131,6 +131,12 @@ ClassView.prototype.render = function (data) {
131
132
this.updateSizes();
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
+
140
};
141
142
ClassView.prototype.loadClass = function (className) {
@@ -139,7 +145,7 @@ ClassView.prototype.loadClass = function (className) {
145
146
this.showLoader();
147
this.cacheUMLExplorer.source.getClassView(className, function (err, data) {
- console.log(data);
148
+ //console.log(data);
143
149
self.removeLoader();
144
150
if (err) {
151
self.showLoader("Unable to get " + self.cacheUMLExplorer.classTree.SELECTED_CLASS_NAME);
0 commit comments