🐛 Fix problem with thumbnail updating

This commit is contained in:
alonso.torres 2023-02-02 15:34:35 +01:00
parent 3e52bef6d4
commit e8972dd802

View file

@ -273,8 +273,8 @@
{:key (dm/str "thumbnail-canvas-" (:id shape)) {:key (dm/str "thumbnail-canvas-" (:id shape))
:ref frame-canvas-ref :ref frame-canvas-ref
:data-object-id (dm/str page-id (:id shape)) :data-object-id (dm/str page-id (:id shape))
:width fixed-width :width width
:height fixed-height :height height
:style {;; Safari has a problem with the positioning of the canvas. All this is to fix Safari behavior :style {;; Safari has a problem with the positioning of the canvas. All this is to fix Safari behavior
;; https://bugs.webkit.org/show_bug.cgi?id=23113 ;; https://bugs.webkit.org/show_bug.cgi?id=23113
:position "fixed" :position "fixed"
@ -295,8 +295,8 @@
(when (some? @image-url) (when (some? @image-url)
[:foreignObject {:x x [:foreignObject {:x x
:y y :y y
:width width :width fixed-width
:height height} :height fixed-height}
[:img {:ref frame-image-ref [:img {:ref frame-image-ref
:src @image-url :src @image-url
:width fixed-width :width fixed-width