We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9550e63 commit 56f6f76Copy full SHA for 56f6f76
src/renderer/element/handlers.cljs
@@ -40,7 +40,9 @@
40
(if (= el-k :canvas)
41
db
42
(as-> db db
43
- (update-in db (conj (path db) el-k) #(assoc % :bounds (element/adjusted-bounds % (elements db))))
+ (update-in db (conj (path db) el-k) #(assoc % :bounds (if (= (:tag %) :g)
44
+ (tool/bounds % (elements db))
45
+ (element/adjusted-bounds % (elements db)))))
46
(reduce #(update-bounds %1 %2) db (:children (element db el-k))))))
47
48
(defn update-el
0 commit comments