fix linked groups in treeview nodes

This commit is contained in:
gfgtdf 2016-03-29 22:50:38 +02:00
parent 60653e2632
commit f9ee42c80d
2 changed files with 12 additions and 0 deletions

View File

@ -808,4 +808,15 @@ void ttree_view_node::select_node()
label_->set_value_bool(true);
}
void ttree_view_node::layout_initialise(const bool full_initialisation)
{
// Inherited.
twidget::layout_initialise(full_initialisation);
grid_.layout_initialise(full_initialisation);
// Clear child caches.
FOREACH(AUTO & child, children_)
{
child.layout_initialise(full_initialisation);
}
}
} // namespace gui2

View File

@ -221,6 +221,7 @@ public:
ttree_view_node* get_selectable_node_below();
void select_node();
tgrid& get_grid() { return grid_; }
void layout_initialise(const bool full_initialisation);
private:
int calculate_ypos();