Fix spacer height
This fixes the scrollbar showing up when there's space below the files.
This commit is contained in:
parent
077c30b7e4
commit
9af2919b1a
1 changed files with 2 additions and 2 deletions
|
|
@ -2079,7 +2079,7 @@ impl Tab {
|
|||
}
|
||||
}
|
||||
let spacer_height = height
|
||||
.checked_sub(max_bottom + 2 * (space_xxs as usize))
|
||||
.checked_sub(max_bottom + 4 * (space_xxs as usize))
|
||||
.unwrap_or(0);
|
||||
if spacer_height > 0 {
|
||||
children.push(
|
||||
|
|
@ -2449,7 +2449,7 @@ impl Tab {
|
|||
}
|
||||
//TODO: HACK If we don't reach the bottom of the view, go ahead and add a spacer to do that
|
||||
{
|
||||
let spacer_height = size.height as i32 - y as i32;
|
||||
let spacer_height = size.height as i32 - y as i32 - 4 * space_xxs as i32;
|
||||
if spacer_height > 0 {
|
||||
children.push(
|
||||
widget::container(vertical_space(Length::Fixed(spacer_height as f32))).into(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue