Hide Scrollbars

This commit is contained in:
Daniel Akhterov 2018-12-30 14:49:23 -08:00
parent 2ab81ae6c9
commit 1862b94c56

View File

@ -96,6 +96,20 @@ where
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
pub fn set_offset<S>(&mut self, offset: S)
where