0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

Minor fix on drawing selection rect for group.

This commit is contained in:
Andrey Antukh 2016-01-28 23:38:48 +02:00
parent af8873470c
commit bcda09ed41

View file

@ -176,7 +176,9 @@
x' (apply max (map (fn [{:keys [x width]}] (+ x width)) shapes))
y' (apply max (map (fn [{:keys [y height]}] (+ y height)) shapes))
width (- x' x)
height (- y' y)]
height (- y' y)
x (+ dx x)
y (+ dy y)]
(as-> shape $
(merge $ {:width width :height height :x x :y y})
(container-rect $))))