Skip to content

Commit

Permalink
Explicitly fill scrollable height to fill
Browse files Browse the repository at this point in the history
This fixes an issue where Fill-width elements in the column would
disappear, maybe because of these issues:

iced-rs/iced#715
iced-rs/iced#2186
iced-rs/iced#2192
  • Loading branch information
quintenpalmer committed Feb 15, 2024
1 parent f5dd56c commit 56c4cc9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/src/gui/view/page/pages/albums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub fn album_list<'a>(
}
}

let scrollable = Scrollable::new(columns.width(Length::Fill));
let scrollable = Scrollable::new(columns.width(Length::Fill)).height(Length::Fill);
Container::new(
Column::new()
.spacing(10)
Expand Down
2 changes: 1 addition & 1 deletion src/app/src/gui/view/page/pages/artist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub fn artist_list<'a>(
}
}

let scrollable = Scrollable::new(columns.width(Length::Fill));
let scrollable = Scrollable::new(columns.width(Length::Fill)).height(Length::Fill);
Container::new(
Column::new()
.spacing(10)
Expand Down
2 changes: 1 addition & 1 deletion src/app/src/gui/view/page/pages/movielist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ pub fn movie_list<'a>(
.push(h1("Movies"))
.push(page_buttons)
.push(extra_page_buttons)
.push(Scrollable::new(columns.width(Length::Fill))),
.push(Scrollable::new(columns.width(Length::Fill)).height(Length::Fill)),
);

(breadcrumbs, body)
Expand Down
2 changes: 1 addition & 1 deletion src/app/src/gui/view/page/pages/tracks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub fn track_list<'a>(

let grid: Element<Message> = columns.into();

let scrollable = Scrollable::new(grid);
let scrollable = Scrollable::new(grid).height(Length::Fill);

let mut total_tracks = 0;
for (_, artist) in library.get_artist_map().iter() {
Expand Down

0 comments on commit 56c4cc9

Please sign in to comment.