safari fixes

--HG--
extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%4032
This commit is contained in:
ondrej.zara
2009-01-26 11:57:01 +00:00
parent 128d598d5d
commit a020261cef
+9 -3
View File
@@ -1022,8 +1022,14 @@ SQL.Map.prototype.move = function(e) { /* mousemove */
var coefY = this.height / this.owner.height; var coefY = this.height / this.owner.height;
var left = this.l / coefX; var left = this.l / coefX;
var top = this.t / coefY; var top = this.t / coefY;
document.documentElement.scrollLeft = Math.round(left);
document.documentElement.scrollTop = Math.round(top); if (OZ.webkit) {
document.body.scrollLeft = Math.round(left);
document.body.scrollTop = Math.round(top);
} else {
document.documentElement.scrollLeft = Math.round(left);
document.documentElement.scrollTop = Math.round(top);
}
this.redraw(); this.redraw();
} }
@@ -1962,7 +1968,7 @@ SQL.Designer.prototype.init = function() {
this.requestLanguage(); this.requestLanguage();
this.requestDB(); this.requestDB();
this.vector = this.getOption("vector") && (OZ.gecko || OZ.opera || OZ.safari || OZ.ie); this.vector = this.getOption("vector") && (OZ.gecko || OZ.opera || OZ.webkit || OZ.ie);
if (this.vector) { if (this.vector) {
this.vector = "svg"; this.vector = "svg";
if (OZ.ie) { this.vector = "vml"; } if (OZ.ie) { this.vector = "vml"; }