Fix modal and toast examples

This commit is contained in:
Héctor Ramón Jiménez 2023-11-21 18:55:53 +01:00
parent a1439071d6
commit 89e3de7c08
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 3 additions and 0 deletions

View file

@ -231,6 +231,7 @@ mod modal {
use iced::mouse;
use iced::{
BorderRadius, Color, Element, Event, Length, Point, Rectangle, Size,
Vector,
};
/// A widget that centers a modal element over some base element
@ -413,6 +414,7 @@ mod modal {
renderer: &Renderer,
_bounds: Size,
position: Point,
_translation: Vector,
) -> layout::Node {
let limits = layout::Limits::new(Size::ZERO, self.size)
.width(Length::Fill)