mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Adjust the scroll after setting the scroll strategy
This commit is contained in:
parent
924c74afbe
commit
3ecae579e8
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user