diff options
author | ondrej.zara <none@none> | 2010-11-15 12:33:57 +0000 |
---|---|---|
committer | ondrej.zara <none@none> | 2010-11-15 12:33:57 +0000 |
commit | 3e12757d60166202318da37f8c95dfe9cf67497c (patch) | |
tree | a1e6d9b0100fd50af15b9155804ad38c784c2751 /js | |
parent | 93a21f051f7e09c432013a26d0933030e3b99158 (diff) | |
download | wwwsqldesigner-3e12757d60166202318da37f8c95dfe9cf67497c.zip wwwsqldesigner-3e12757d60166202318da37f8c95dfe9cf67497c.tar.gz wwwsqldesigner-3e12757d60166202318da37f8c95dfe9cf67497c.tar.bz2 |
fixed bug with hidden non-redrawing connectors
--HG--
extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%40114
Diffstat (limited to 'js')
-rw-r--r-- | js/wwwsqldesigner.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js index 1c4d046..54e6f1e 100644 --- a/js/wwwsqldesigner.js +++ b/js/wwwsqldesigner.js @@ -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); |