diff --git a/src/widget/popover.rs b/src/widget/popover.rs index 6f445e1..e6b611a 100644 --- a/src/widget/popover.rs +++ b/src/widget/popover.rs @@ -178,10 +178,14 @@ where // Calculate overlay position from relative position let mut overlay_position = match self.position { - Position::Center | Position::Bottom => Point::new( + Position::Center => Point::new( bounds.x + bounds.width / 2.0, bounds.y + bounds.height / 2.0, ), + Position::Bottom => Point::new( + bounds.x + bounds.width / 2.0, + bounds.y + bounds.height, + ), Position::Point(relative) => { bounds.position() + Vector::new(relative.x, relative.y) }