Skip to content

Commit

Permalink
fix: don't apply drawer position as overlay translation
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 authored and mmstick committed Nov 20, 2024
1 parent d79faab commit bc89a8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/widget/context_drawer/overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ where
layout: Layout<'_>,
renderer: &crate::Renderer,
) -> Option<overlay::Element<'c, Message, crate::Theme, crate::Renderer>> {
let translation = iced::Vector::new(self.position.x, self.position.y);
self.content
.as_widget_mut()
.overlay(self.tree, layout, renderer, translation)
.overlay(self.tree, layout, renderer, iced::Vector::default())
}
}

0 comments on commit bc89a8a

Please sign in to comment.