0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

Revert some changes.

This commit is contained in:
Andrey Antukh 2016-01-29 00:04:22 +02:00
parent bcda09ed41
commit 55fd2ae629

View file

@ -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 $))))