SVG: do not override view box

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2020-11-19 09:34:07 +01:00
parent 4ef7aa90b9
commit 3d93818533
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -47,8 +47,6 @@ public class SvgBitmapTranscoder implements ResourceTranscoder<SVG, Bitmap> {
public Resource<Bitmap> transcode(Resource<SVG> toTranscode) {
SVG svg = toTranscode.get();
svg.setDocumentViewBox(0, 0, svg.getDocumentWidth(), svg.getDocumentHeight());
try {
svg.setDocumentHeight("100%");
svg.setDocumentWidth("100%");