Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed May 27, 2015
2 parents d292d72 + 1e3afe9 commit 55bdf74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CacheUMLExplorer",
"version": "0.11.0",
"version": "0.11.1",
"description": "An UML Class explorer for InterSystems Caché",
"directories": {
"test": "test"
Expand Down
9 changes: 8 additions & 1 deletion web/js/ClassView.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ ClassView.prototype.render = function (data) {
var self = this,
number = lib.countProperties(data["classes"]);

if (number < 30) return this.confirmRender(data);
if (number < 30) {
return self.confirmRender(data);
}

var c = document.createElement("div"),
c1 = document.createElement("h3"),
Expand Down Expand Up @@ -415,6 +417,11 @@ ClassView.prototype.confirmRender = function (data) {
uml = joint.shapes.uml, relFrom, relTo,
classes = {}, connector;

// Reset view and zoom again because it may cause visual damage to icons.
// Don't ask me why. Just believe we need this peace of code.
this.zoom(null);
this.resetView();

if (!data["classes"]) {
console.error("Wrong data: no 'classes' property.", data);
return;
Expand Down

0 comments on commit 55bdf74

Please sign in to comment.