From 3ecae579e8e160809abd2c41d98913599c178deb Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Sat, 21 Jan 2017 11:46:56 -0800 Subject: [PATCH] Adjust the scroll after setting the scroll strategy --- src/views/text_view.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/text_view.rs b/src/views/text_view.rs index bab2b74..2ec0290 100644 --- a/src/views/text_view.rs +++ b/src/views/text_view.rs @@ -126,6 +126,7 @@ impl TextView { /// manually. pub fn set_scroll_strategy(&mut self, strategy: ScrollStrategy) { self.scroll_strategy = strategy; + self.adjust_scroll(); } /// Defines the way scrolling is adjusted on content or size change.