mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
Add gridbox children to children_ so that layout will see need_iteration when a flex node is in the grid
This commit is contained in:
@@ -46,6 +46,12 @@ class GridBox : public Node {
|
|||||||
line.push_back(filler());
|
line.push_back(filler());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (const auto& line : lines_) {
|
||||||
|
for (const auto &element : line) {
|
||||||
|
children_.push_back( element );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComputeRequirement() override {
|
void ComputeRequirement() override {
|
||||||
|
|||||||
Reference in New Issue
Block a user