Fix a reinitialization bug.
When reinitialization the scrollbar mode is not correctly set due to the old, soon to be obsoleted, variable. So set it to fix the bug.
This commit is contained in:
parent
f186d8b685
commit
95cd31fe51
1 changed files with 1 additions and 0 deletions
|
@ -215,6 +215,7 @@ void tscrollbar_container::NEW_request_reduce_height(
|
|||
|
||||
// Always set the bar visible, is a nop is already visible.
|
||||
vertical_scrollbar_grid_->set_visible(twidget::VISIBLE);
|
||||
vertical_scrollbar_mode_ = always_visible;
|
||||
|
||||
const tpoint scrollbar_size = vertical_scrollbar_grid_->get_best_size();
|
||||
if(maximum_height > static_cast<unsigned>(scrollbar_size.y)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue