Commit 5234aa33 by Tomas Alabes

svg preserveAspectRatio fix

parent d459d0f3
...@@ -1271,7 +1271,7 @@ window.Raphael && window.Raphael.svg && function(R) { ...@@ -1271,7 +1271,7 @@ window.Raphael && window.Raphael.svg && function(R) {
eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]); eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);
var size = mmax(w / this.width, h / this.height), var size = mmax(w / this.width, h / this.height),
top = this.top, top = this.top,
aspectRatio = fit ? "meet" : "xMinYMin", aspectRatio = fit ? "xMidYMid meet" : "xMinYMin",
vb, vb,
sw; sw;
if (x == null) { if (x == null) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -7026,7 +7026,7 @@ ...@@ -7026,7 +7026,7 @@
eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]); eve("raphael.setViewBox", this, this._viewBox, [x, y, w, h, fit]);
var size = mmax(w / this.width, h / this.height), var size = mmax(w / this.width, h / this.height),
top = this.top, top = this.top,
aspectRatio = fit ? "meet" : "xMinYMin", aspectRatio = fit ? "xMidYMid meet" : "xMinYMin",
vb, vb,
sw; sw;
if (x == null) { if (x == null) {
......
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