Skip to content

Commit

Permalink
fix linked groups in treeview nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Mar 30, 2016
1 parent 60653e2 commit f9ee42c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/gui/widgets/tree_view_node.cpp
Expand Up @@ -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
1 change: 1 addition & 0 deletions src/gui/widgets/tree_view_node.hpp
Expand Up @@ -221,6 +221,7 @@ class ttree_view_node : public twidget
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();
Expand Down

0 comments on commit f9ee42c

Please sign in to comment.