From cdc91feb28d14dc8d2e5d523bce49b981233bfe3 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 7 Feb 2022 17:48:51 +0100 Subject: [PATCH] :bug: Fix Firefox problem when rendering frames --- .../src/app/main/ui/workspace/viewport/thumbnail_renderer.cljs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/app/main/ui/workspace/viewport/thumbnail_renderer.cljs b/frontend/src/app/main/ui/workspace/viewport/thumbnail_renderer.cljs index 8b53a9e21..6e0ff85fe 100644 --- a/frontend/src/app/main/ui/workspace/viewport/thumbnail_renderer.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/thumbnail_renderer.cljs @@ -43,6 +43,8 @@ svg-node (.createElementNS js/document "http://www.w3.org/2000/svg" "svg") _ (.setAttribute svg-node "version" "1.1") _ (.setAttribute svg-node "viewBox" (str (:x shape) " " (:y shape) " " (:width shape) " " (:height shape))) + _ (.setAttribute svg-node "width" (:width shape)) + _ (.setAttribute svg-node "height" (:height shape)) _ (unchecked-set svg-node "innerHTML" frame-html) xml (-> (js/XMLSerializer.) (.serializeToString svg-node)