mirror of
https://github.com/penpot/penpot.git
synced 2026-06-01 13:10:21 +00:00
🐛 Fix a problem with input rotation for shapes
This commit is contained in:
parent
9e6db257cc
commit
74cc8079bb
@ -153,7 +153,6 @@
|
|||||||
(get-object-bounds objects shape nil))
|
(get-object-bounds objects shape nil))
|
||||||
([objects shape {:keys [ignore-margin?] :or {ignore-margin? true}}]
|
([objects shape {:keys [ignore-margin?] :or {ignore-margin? true}}]
|
||||||
(let [base-bounds (calculate-base-bounds shape ignore-margin?)
|
(let [base-bounds (calculate-base-bounds shape ignore-margin?)
|
||||||
_ (prn ">" (:name shape) base-bounds)
|
|
||||||
bounds
|
bounds
|
||||||
(cond
|
(cond
|
||||||
(or (empty? (:shapes shape))
|
(or (empty? (:shapes shape))
|
||||||
|
|||||||
@ -452,7 +452,7 @@
|
|||||||
[:span {:class (stl/css :icon)} i/rotation-refactor]
|
[:span {:class (stl/css :icon)} i/rotation-refactor]
|
||||||
[:> numeric-input*
|
[:> numeric-input*
|
||||||
{:no-validate true
|
{:no-validate true
|
||||||
:min 0
|
:min -359
|
||||||
:max 359
|
:max 359
|
||||||
:data-wrap true
|
:data-wrap true
|
||||||
:placeholder (if (= :multiple (:rotation values)) (tr "settings.multiple") "--")
|
:placeholder (if (= :multiple (:rotation values)) (tr "settings.multiple") "--")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user