fixed bug with hidden non-redrawing connectors

--HG--
extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%40114
This commit is contained in:
ondrej.zara
2010-11-15 12:33:57 +00:00
parent 93a21f051f
commit 3e12757d60
+11 -2
View File
@@ -838,7 +838,11 @@ SQL.Table.prototype.down = function(e) { /* mousedown - start drag */
t.y[i] = t.active[i].y - event.clientY;
}
if (this.owner.getOption("hide")) { this.hideRelations(); }
if (this.owner.getOption("hide")) {
for (var i=0;i<n;i++) {
t.active[i].hideRelations();
}
}
this.documentMove = OZ.Event.add(document, moveEvent, this.bind(this.move));
this.documentUp = OZ.Event.add(document, upEvent, this.bind(this.up));
@@ -946,7 +950,12 @@ SQL.Table.prototype.move = function(e) { /* mousemove */
SQL.Table.prototype.up = function(e) {
var t = SQL.Table;
var d = SQL.Designer;
if (d.getOption("hide")) { t.active.showRelations(); }
if (d.getOption("hide")) {
for (var i=0;i<t.active.length;i++) {
t.active[i].showRelations();
t.active[i].redraw();
}
}
t.active = false;
OZ.Event.remove(this.documentMove);
OZ.Event.remove(this.documentUp);