mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Only apply the constraint to the parent with the new syntax
Also attempt to document it
This commit is contained in:
parent
ee672d65f5
commit
7c55b9f925
5 changed files with 16 additions and 9 deletions
|
@ -144,6 +144,9 @@ fn gen_layout_info_prop(elem: &ElementRc) {
|
|||
.clone()
|
||||
.map(|(h, v)| (Expression::PropertyReference(h), Expression::PropertyReference(v)))
|
||||
.or_else(|| {
|
||||
if c.borrow().is_legacy_syntax {
|
||||
return None;
|
||||
}
|
||||
if c.borrow().repeated.is_some() {
|
||||
// FIXME: we should ideally add runtime code to merge layout info of all elements that are repeated (same as #407)
|
||||
return None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue