Skip to content

Commit

Permalink
Set layout tests to use FillStrat::Fill to expose inf fill issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fishrockz committed Jan 12, 2023
1 parent f5df3be commit bd96450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions druid/src/widget/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ mod tests {
);

let image_widget =
Scroll::new(Container::new(Image::new(image_data)).with_id(id_1)).vertical();
Scroll::new(Container::new(Image::new(image_data).fill_mode(FillStrat::Fill)).with_id(id_1)).vertical();

Harness::create_simple(true, image_widget, |harness| {
harness.send_initial_events();
Expand Down Expand Up @@ -466,7 +466,7 @@ mod tests {
);

let image_widget =
Scroll::new(Container::new(Image::new(image_data)).with_id(id_1)).horizontal();
Scroll::new(Container::new(Image::new(image_data).fill_mode(FillStrat::Fill)).with_id(id_1)).horizontal();

Harness::create_simple(true, image_widget, |harness| {
harness.send_initial_events();
Expand Down

0 comments on commit bd96450

Please sign in to comment.