mirror of https://github.com/penpot/penpot.git
🐛 Auto-width changes to fixed when switching variants (#7449)
* 🐛 Auto-width changes to fixed when switching variants * 📎 Fix typo on changes --------- Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
cfa607f57f
commit
11b7b458bf
|
|
@ -47,7 +47,8 @@
|
|||
- Fix multi level library dependencies [Taiga #12155](https://tree.taiga.io/project/penpot/issue/12155)
|
||||
- Fix component context menu options order in assets tab [Taiga #11941](https://tree.taiga.io/project/penpot/issue/11941)
|
||||
- Fix error updating library [Taiga #12218](https://tree.taiga.io/project/penpot/issue/12218)
|
||||
- Fix Restoring a variant in another file makes it overlap the existing variant [Taiga #12049](https://tree.taiga.io/project/penpot/issue/12049)
|
||||
- Fix restoring a variant in another file makes it overlap the existing variant [Taiga #12049](https://tree.taiga.io/project/penpot/issue/12049)
|
||||
- Fix auto-width changes to fixed when switching variants [Taiga #12172](https://tree.taiga.io/project/penpot/issue/12172)
|
||||
|
||||
|
||||
## 2.10.1 (Unreleased)
|
||||
|
|
|
|||
|
|
@ -2029,10 +2029,14 @@
|
|||
reset-pos-data? (and
|
||||
(not skip-operations?)
|
||||
(cfh/text-shape? previous-shape)
|
||||
(= attr :position-data)
|
||||
(or (= attr :position-data) (= attr :selrect))
|
||||
(not= (:position-data previous-shape) (:position-data current-shape))
|
||||
(touched :geometry-group))
|
||||
|
||||
skip-operations? (or skip-operations?
|
||||
;; If we are going to reset the position data, skip the selrect attr
|
||||
(and reset-pos-data? (= attr :selrect)))
|
||||
|
||||
attr-val
|
||||
(when-not skip-operations?
|
||||
(cond
|
||||
|
|
|
|||
Loading…
Reference in New Issue