mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 22:49:01 -05:00
🐛 Fix problem with text carring over next line when changing to fixed
This commit is contained in:
parent
5079582e1f
commit
6832b4a304
3 changed files with 4 additions and 2 deletions
|
@ -57,6 +57,7 @@
|
||||||
- Fix problem when copy/pasting shapes [Taiga #4931](https://tree.taiga.io/project/penpot/issue/4931)
|
- Fix problem when copy/pasting shapes [Taiga #4931](https://tree.taiga.io/project/penpot/issue/4931)
|
||||||
- Fix problem with color picker not able to change hue [Taiga #5065](https://tree.taiga.io/project/penpot/issue/5065)
|
- Fix problem with color picker not able to change hue [Taiga #5065](https://tree.taiga.io/project/penpot/issue/5065)
|
||||||
- Fix problem with outer stroke in texts [Taiga #5078](https://tree.taiga.io/project/penpot/issue/5078)
|
- Fix problem with outer stroke in texts [Taiga #5078](https://tree.taiga.io/project/penpot/issue/5078)
|
||||||
|
- Fix problem with text carring over next line when changing to fixed [Taiga #5067](https://tree.taiga.io/project/penpot/issue/5067)
|
||||||
|
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
- To @ondrejkonec: for contributing to the code with:
|
- To @ondrejkonec: for contributing to the code with:
|
||||||
|
|
|
@ -377,7 +377,7 @@
|
||||||
(assoc-in [:workspace-local :edition] (-> selected first :id)))))))
|
(assoc-in [:workspace-local :edition] (-> selected first :id)))))))
|
||||||
|
|
||||||
(defn not-changed? [old-dim new-dim]
|
(defn not-changed? [old-dim new-dim]
|
||||||
(> (mth/abs (- old-dim new-dim)) 1))
|
(> (mth/abs (- old-dim new-dim)) 0.1))
|
||||||
|
|
||||||
(defn commit-resize-text
|
(defn commit-resize-text
|
||||||
[]
|
[]
|
||||||
|
|
|
@ -66,7 +66,8 @@
|
||||||
(when (contains? #{:auto-height :auto-width} grow-type)
|
(when (contains? #{:auto-height :auto-width} grow-type)
|
||||||
(let [{:keys [width height]}
|
(let [{:keys [width height]}
|
||||||
(-> (dom/query node ".paragraph-set")
|
(-> (dom/query node ".paragraph-set")
|
||||||
(dom/get-client-size))
|
(dom/get-bounding-rect))
|
||||||
|
|
||||||
width (mth/ceil width)
|
width (mth/ceil width)
|
||||||
height (mth/ceil height)]
|
height (mth/ceil height)]
|
||||||
(when (and (not (mth/almost-zero? width))
|
(when (and (not (mth/almost-zero? width))
|
||||||
|
|
Loading…
Add table
Reference in a new issue