FIX when creating svg element for painted elements do not try to preserve aspect ratio (Firefox respects an alignment different from 'none' in svg.preserveAspectRatio)

pull/89/head
coproc 2019-09-27 18:10:39 +02:00
rodzic 2e85d2d326
commit 6c16bdb15b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1535,7 +1535,7 @@ VectorPaintEditorMorph.prototype.getSVG = function () {
svg.attributes.xmlns = 'http://www.w3.org/2000/svg';
svg.attributes.snap = 'http://snap.berkeley.edu/run';
svg.attributes.version = '1.1';
svg.attributes.preserveAspectRatio = 'xMinYMin meet';
svg.attributes.preserveAspectRatio = 'none meet';
svg.attributes.viewBox =
bounds.left() + ' ' + bounds.top() + ' ' +
(bounds.right() - bounds.left()) + ' ' +