mirror of
https://github.com/penpot/penpot.git
synced 2025-07-17 22:07:13 +02:00
🐛 Changes after review
This commit is contained in:
parent
01ca538c72
commit
41948ff86b
2 changed files with 2 additions and 3 deletions
|
@ -392,8 +392,7 @@
|
||||||
(keys position-data)
|
(keys position-data)
|
||||||
(fn [shape]
|
(fn [shape]
|
||||||
(-> shape
|
(-> shape
|
||||||
(assoc :position-data (get position-data (:id shape))))
|
(assoc :position-data (get position-data (:id shape)))))
|
||||||
)
|
|
||||||
{:save-undo? false :reg-objects? false}))
|
{:save-undo? false :reg-objects? false}))
|
||||||
(rx/of (fn [state]
|
(rx/of (fn [state]
|
||||||
(dissoc state ::update-position-data-debounce ::update-position-data))))))))
|
(dissoc state ::update-position-data-debounce ::update-position-data))))))))
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
(assoc :content (attrs/merge content editor-content)))))
|
(assoc :content (attrs/merge content editor-content)))))
|
||||||
|
|
||||||
(defn- update-text-shape
|
(defn- update-text-shape
|
||||||
[{:keys [grow-type id] :as shape} node]
|
[{:keys [grow-type id]} node]
|
||||||
;; Check if we need to update the size because it's auto-width or auto-height
|
;; Check if we need to update the size because it's auto-width or auto-height
|
||||||
(when (contains? #{:auto-height :auto-width} grow-type)
|
(when (contains? #{:auto-height :auto-width} grow-type)
|
||||||
(let [{:keys [width height]}
|
(let [{:keys [width height]}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue