deletion of lines affecting popup scrolling (#2497)
This commit is contained in:
parent
8493b5fca6
commit
301ed9b48f
1 changed files with 0 additions and 2 deletions
|
@ -88,8 +88,6 @@ impl<T: Component> Popup<T> {
|
|||
|
||||
pub fn scroll(&mut self, offset: usize, direction: bool) {
|
||||
if direction {
|
||||
self.scroll += offset;
|
||||
|
||||
let max_offset = self.child_size.1.saturating_sub(self.size.1);
|
||||
self.scroll = (self.scroll + offset).min(max_offset as usize);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue