mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 06:56:10 +02:00
🐛 Fix a problem with input rotation for shapes
This commit is contained in:
parent
9e6db257cc
commit
74cc8079bb
2 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue