Skip to content

Commit

Permalink
fix listbox items to small after tlistbox::set_row_shown
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Aug 16, 2016
1 parent 32451f2 commit af58971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/widgets/listbox.cpp
Expand Up @@ -195,8 +195,8 @@ void tlistbox::set_row_shown(const std::vector<bool>& shown)
for(size_t i = 0; i < shown.size(); ++i) {
generator_->set_item_shown(i, shown[i]);
}
generator_->place(generator_->get_origin(),
generator_->calculate_best_size());
tpoint best_size = generator_->calculate_best_size();
generator_->place(generator_->get_origin(), { std::max(best_size.x, content_visible_area().w), best_size.y });
resize_needed = !content_resize_request();
}

Expand Down

0 comments on commit af58971

Please sign in to comment.