summaryrefslogtreecommitdiffstats
path: root/widget/src/row.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-02-01 12:49:57 +0100
committerLibravatar GitHub <noreply@github.com>2024-02-01 12:49:57 +0100
commit264f20697b8f2844ab2efae1e6c33caaf8ffe468 (patch)
tree4f262c1bc4d9b55f030146ec2a6f9b6cc421a6c5 /widget/src/row.rs
parent7bbe4502170be1942c4e61d222e14401f724aa42 (diff)
parent738aa47547818ebf57dc4f00099386a5a22a86d5 (diff)
downloadiced-264f20697b8f2844ab2efae1e6c33caaf8ffe468.tar.gz
iced-264f20697b8f2844ab2efae1e6c33caaf8ffe468.tar.bz2
iced-264f20697b8f2844ab2efae1e6c33caaf8ffe468.zip
Merge pull request #2226 from iced-rs/overlay-composition-reloaded
Remove `position` from `overlay::Element`
Diffstat (limited to 'widget/src/row.rs')
-rw-r--r--widget/src/row.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/widget/src/row.rs b/widget/src/row.rs
index 89f610c9..7f8c3354 100644
--- a/widget/src/row.rs
+++ b/widget/src/row.rs
@@ -7,7 +7,7 @@ use crate::core::renderer;
use crate::core::widget::{Operation, Tree};
use crate::core::{
Alignment, Clipboard, Element, Length, Padding, Pixels, Rectangle, Shell,
- Size, Widget,
+ Size, Vector, Widget,
};
/// A container that distributes its contents horizontally.
@@ -248,8 +248,15 @@ where
tree: &'b mut Tree,
layout: Layout<'_>,
renderer: &Renderer,
+ translation: Vector,
) -> Option<overlay::Element<'b, Message, Theme, Renderer>> {
- overlay::from_children(&mut self.children, tree, layout, renderer)
+ overlay::from_children(
+ &mut self.children,
+ tree,
+ layout,
+ renderer,
+ translation,
+ )
}
}