mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 07:30:24 +00:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
de9a21121a
@ -34,6 +34,7 @@
|
|||||||
- Fix problem when drag+duplicate a full grid [Taiga #12565](https://tree.taiga.io/project/penpot/issue/12565)
|
- Fix problem when drag+duplicate a full grid [Taiga #12565](https://tree.taiga.io/project/penpot/issue/12565)
|
||||||
- Fix problem when pasting elements in reverse flex layout [Taiga #12460](https://tree.taiga.io/project/penpot/issue/12460)
|
- Fix problem when pasting elements in reverse flex layout [Taiga #12460](https://tree.taiga.io/project/penpot/issue/12460)
|
||||||
- Fix wrong board size presets in Android [Taiga #12339](https://tree.taiga.io/project/penpot/issue/12339)
|
- Fix wrong board size presets in Android [Taiga #12339](https://tree.taiga.io/project/penpot/issue/12339)
|
||||||
|
- Fix problem with grid layout components and auto sizing [Github #7797](https://github.com/penpot/penpot/issues/7797)
|
||||||
|
|
||||||
|
|
||||||
## 2.12.1
|
## 2.12.1
|
||||||
|
|||||||
@ -269,8 +269,8 @@
|
|||||||
"Remove flex children properties except the fit-content for flex layouts. These are properties
|
"Remove flex children properties except the fit-content for flex layouts. These are properties
|
||||||
that we don't have to propagate to copies but will be respected when swapping components"
|
that we don't have to propagate to copies but will be respected when swapping components"
|
||||||
[shape]
|
[shape]
|
||||||
(let [layout-item-h-sizing (when (and (ctl/flex-layout? shape) (ctl/auto-width? shape)) :auto)
|
(let [layout-item-h-sizing (when (and (ctl/any-layout? shape) (ctl/auto-width? shape)) :auto)
|
||||||
layout-item-v-sizing (when (and (ctl/flex-layout? shape) (ctl/auto-height? shape)) :auto)]
|
layout-item-v-sizing (when (and (ctl/any-layout? shape) (ctl/auto-height? shape)) :auto)]
|
||||||
(-> shape
|
(-> shape
|
||||||
(d/without-keys ctk/swap-keep-attrs)
|
(d/without-keys ctk/swap-keep-attrs)
|
||||||
(cond-> (some? layout-item-h-sizing)
|
(cond-> (some? layout-item-h-sizing)
|
||||||
|
|||||||
@ -432,10 +432,12 @@
|
|||||||
:val position-data
|
:val position-data
|
||||||
:ignore-touched true
|
:ignore-touched true
|
||||||
:ignore-geometry true}]})))]
|
:ignore-geometry true}]})))]
|
||||||
(dch/commit-changes
|
(when (d/not-empty? changes)
|
||||||
{:redo-changes changes :undo-changes []
|
(dch/commit-changes
|
||||||
:save-undo? false
|
{:redo-changes changes :undo-changes []
|
||||||
:tags #{:position-data}})))))))
|
:save-undo? false
|
||||||
|
:tags #{:position-data}})))))
|
||||||
|
(rx/take-until stoper-s))))
|
||||||
|
|
||||||
(->> stream
|
(->> stream
|
||||||
(rx/filter dch/commit?)
|
(rx/filter dch/commit?)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user