mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
make SelectView less greedy
This commit is contained in:
parent
5094f49219
commit
8bf82a9b58
@ -677,7 +677,9 @@ impl<T: 'static> View for SelectView<T> {
|
||||
// Add 2 spaces for the scrollbar if we need
|
||||
let w = if scrolling { w + 2 } else { w };
|
||||
|
||||
Vec2::new(w, h)
|
||||
// Don't request more than we're offered - we can scroll,
|
||||
// after all
|
||||
Vec2::new(w, min(h, req.y))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user