Actually compute the layout of elements within a for loop

This commit is contained in:
Olivier Goffart 2020-09-07 14:04:14 +02:00
parent d924ec6bd9
commit 16f5cf42e3
6 changed files with 69 additions and 5 deletions

View file

@ -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()