Merge pull request #304 from danielakhterov/feature/hide_scrollbars

Hide Scrollbars
This commit is contained in:
Alexandre Bury 2019-01-01 12:05:37 +01:00 committed by GitHub
commit 1534e5fdf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,6 +96,20 @@ where
self.with(|s| s.set_scroll_strategy(strategy)) self.with(|s| s.set_scroll_strategy(strategy))
} }
/// Control whether scroll bars are visibile.
///
/// Defaults to `true`.
pub fn set_show_scrollbars(&mut self, show_scrollbars: bool) {
self.show_scrollbars = show_scrollbars;
}
/// Control whether scroll bars are visibile.
///
/// Chainable variant
pub fn show_scrollbars(self, show_scrollbars: bool) -> Self {
self.with(|s| s.set_show_scrollbars(show_scrollbars))
}
/// Sets the scroll offset to the given value /// Sets the scroll offset to the given value
pub fn set_offset<S>(&mut self, offset: S) pub fn set_offset<S>(&mut self, offset: S)
where where