Commit ab5fa489 by Tomas Alabes

getBBox() works incorrect for VML after settings View Box on canvas

parent 7b67a148
...@@ -497,7 +497,10 @@ window.Raphael && window.Raphael.vml && function(R) { ...@@ -497,7 +497,10 @@ window.Raphael && window.Raphael.vml && function(R) {
skew.matrix = Str(matrix); skew.matrix = Str(matrix);
skew.offset = matrix.offset(); skew.offset = matrix.offset();
} }
oldt && (this._.transform = oldt); if (oldt !== null) { // empty string value is true as well
this._.transform = oldt;
R._extractTransform(this, oldt);
}
return this; return this;
}; };
elproto.rotate = function (deg, cx, cy) { elproto.rotate = function (deg, cx, cy) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -7696,7 +7696,10 @@ ...@@ -7696,7 +7696,10 @@
skew.matrix = Str(matrix); skew.matrix = Str(matrix);
skew.offset = matrix.offset(); skew.offset = matrix.offset();
} }
oldt && (this._.transform = oldt); if (oldt !== null) { // empty string value is true as well
this._.transform = oldt;
R._extractTransform(this, oldt);
}
return this; return this;
}; };
elproto.rotate = function (deg, cx, cy) { elproto.rotate = function (deg, cx, cy) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment