Implement layout_children().
It now properly forwards it to all children in the generator.
This commit is contained in:
parent
42424afdb5
commit
6b7a3dc02d
2 changed files with 11 additions and 0 deletions
|
@ -29,6 +29,14 @@ tstacked_widget::tstacked_widget()
|
|||
false, false, tgenerator_::independant, false);
|
||||
}
|
||||
|
||||
void tstacked_widget::layout_children()
|
||||
{
|
||||
assert(generator_);
|
||||
for(unsigned i = 0; i < generator_->get_item_count(); ++i) {
|
||||
generator_->item(i).layout_children();
|
||||
}
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,6 +43,9 @@ public:
|
|||
/** Inherited from tcontrol. */
|
||||
unsigned get_state() const { return 0; }
|
||||
|
||||
/** Inherited from tscrollbar_container. */
|
||||
void layout_children();
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue