fix bug that scroll() wouldn't work when avoid_drawing
This commit is contained in:
parent
eef08b8a28
commit
f160710c92
@ -2849,6 +2849,12 @@ namespace nana
|
||||
this->expand(pos.cat, true);
|
||||
ess_->calc_content_size();
|
||||
}
|
||||
else if (!ess_->auto_draw)
|
||||
{
|
||||
//force a update of content size and scrollbar status when auto_draw is false to make
|
||||
//sure that the scroll function works fine.
|
||||
ess_->calc_content_size();
|
||||
}
|
||||
|
||||
auto origin = ess_->content_view->origin();
|
||||
origin.y = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user