mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 04:45:13 +00:00
Actually compute the layout of elements within a for loop
This commit is contained in:
parent
d924ec6bd9
commit
16f5cf42e3
6 changed files with 69 additions and 5 deletions
|
@ -249,6 +249,12 @@ struct Repeater
|
|||
const auto &x = data.at(i);
|
||||
return { &C::component_type, x.get() };
|
||||
}
|
||||
|
||||
void compute_layout() const {
|
||||
for (auto &x : data) {
|
||||
x->compute_layout({ &C::component_type, x.get() });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Flickable::Flickable()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue