fix bug that single-line text_editor still shows scrollbar

This commit is contained in:
Jinhao
2017-07-20 23:44:03 +08:00
parent 0d99cb26dc
commit d53254b89a
3 changed files with 42 additions and 7 deletions

View File

@@ -1337,6 +1337,10 @@ namespace nana{ namespace widgets
line_wrapped(false);
_m_reset_content_size();
impl_->cview->enable_scrolls(ml ? content_view::scrolls::both : content_view::scrolls::none);
impl_->cview->move_origin(point{} -impl_->cview->origin());
impl_->try_refresh = sync_graph::refresh;
return true;
}