mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +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.
|
/// 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.
|
||||||
|
Loading…
Reference in New Issue
Block a user