mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
Revert some changes.
This commit is contained in:
parent
bcda09ed41
commit
55fd2ae629
1 changed files with 1 additions and 3 deletions
|
@ -176,9 +176,7 @@
|
||||||
x' (apply max (map (fn [{:keys [x width]}] (+ x width)) shapes))
|
x' (apply max (map (fn [{:keys [x width]}] (+ x width)) shapes))
|
||||||
y' (apply max (map (fn [{:keys [y height]}] (+ y height)) shapes))
|
y' (apply max (map (fn [{:keys [y height]}] (+ y height)) shapes))
|
||||||
width (- x' x)
|
width (- x' x)
|
||||||
height (- y' y)
|
height (- y' y)]
|
||||||
x (+ dx x)
|
|
||||||
y (+ dy y)]
|
|
||||||
(as-> shape $
|
(as-> shape $
|
||||||
(merge $ {:width width :height height :x x :y y})
|
(merge $ {:width width :height height :x x :y y})
|
||||||
(container-rect $))))
|
(container-rect $))))
|
||||||
|
|
Loading…
Reference in a new issue