Fix modal and toast examples
This commit is contained in:
parent
a1439071d6
commit
89e3de7c08
2 changed files with 3 additions and 0 deletions
|
|
@ -231,6 +231,7 @@ mod modal {
|
||||||
use iced::mouse;
|
use iced::mouse;
|
||||||
use iced::{
|
use iced::{
|
||||||
BorderRadius, Color, Element, Event, Length, Point, Rectangle, Size,
|
BorderRadius, Color, Element, Event, Length, Point, Rectangle, Size,
|
||||||
|
Vector,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A widget that centers a modal element over some base element
|
/// A widget that centers a modal element over some base element
|
||||||
|
|
@ -413,6 +414,7 @@ mod modal {
|
||||||
renderer: &Renderer,
|
renderer: &Renderer,
|
||||||
_bounds: Size,
|
_bounds: Size,
|
||||||
position: Point,
|
position: Point,
|
||||||
|
_translation: Vector,
|
||||||
) -> layout::Node {
|
) -> layout::Node {
|
||||||
let limits = layout::Limits::new(Size::ZERO, self.size)
|
let limits = layout::Limits::new(Size::ZERO, self.size)
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
|
|
|
||||||
|
|
@ -511,6 +511,7 @@ mod toast {
|
||||||
renderer: &Renderer,
|
renderer: &Renderer,
|
||||||
bounds: Size,
|
bounds: Size,
|
||||||
position: Point,
|
position: Point,
|
||||||
|
_translation: Vector,
|
||||||
) -> layout::Node {
|
) -> layout::Node {
|
||||||
let limits = layout::Limits::new(Size::ZERO, bounds)
|
let limits = layout::Limits::new(Size::ZERO, bounds)
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue