Adjust the scroll after setting the scroll strategy

This commit is contained in:
Alexandre Bury 2017-01-21 11:46:56 -08:00
parent 924c74afbe
commit 3ecae579e8

View File

@ -126,6 +126,7 @@ impl TextView {
/// manually. /// manually.
pub fn set_scroll_strategy(&mut self, strategy: ScrollStrategy) { pub fn set_scroll_strategy(&mut self, strategy: ScrollStrategy) {
self.scroll_strategy = strategy; self.scroll_strategy = strategy;
self.adjust_scroll();
} }
/// Defines the way scrolling is adjusted on content or size change. /// Defines the way scrolling is adjusted on content or size change.