mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
Minor fix on drawing selection rect for group.
This commit is contained in:
parent
af8873470c
commit
bcda09ed41
1 changed files with 3 additions and 1 deletions
|
@ -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 $))))
|
||||
|
|
Loading…
Reference in a new issue