more fixes to unit_preview_pane and treeviews.

This commit is contained in:
gfgtdf 2016-08-13 19:51:20 +02:00
parent 59284452c6
commit 3cc2d0962a
3 changed files with 3 additions and 1 deletions

View file

@ -128,6 +128,7 @@
[tree_view]
id = "tree_details"
indention_step_size = 8
vertical_scrollbar_mode = "auto"
[node]
id = "header"
unfolded = true

View file

@ -661,7 +661,7 @@ bool tscrollbar_container::content_resize_width(const int width_modification, co
DBG_GUI_L << LOG_HEADER << " current width " << content_grid_->get_width()
<< " wanted width " << new_width;
assert(new_width > 0);
assert(new_width >= 0);
if(static_cast<unsigned>(new_width) <= content_->get_width()) {
DBG_GUI_L << " width fits in container, test height.\n";

View file

@ -91,6 +91,7 @@ void ttree_view::remove_node(ttree_view_node* node)
void ttree_view::clear()
{
get_root_node().clear();
resize_content(-content_grid()->get_size().x, -content_grid()->get_size().y);
}
void