Skip to content

Commit

Permalink
fix: revert change for overlay layout
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 authored Nov 13, 2024
1 parent 4a97030 commit e3fabf7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/widget/autosize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,12 @@ where
renderer: &Renderer,
translation: Vector,
) -> Option<overlay::Element<'b, Message, Theme, Renderer>> {
self.content
.as_widget_mut()
.overlay(&mut tree.children[0], layout, renderer, translation)
self.content.as_widget_mut().overlay(
&mut tree.children[0],
layout.children().next().unwrap(),
renderer,
translation,
)
}

fn drag_destinations(
Expand Down
9 changes: 6 additions & 3 deletions src/widget/id_container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,12 @@ where
renderer: &Renderer,
translation: Vector,
) -> Option<overlay::Element<'b, Message, Theme, Renderer>> {
self.content
.as_widget_mut()
.overlay(&mut tree.children[0], layout, renderer, translation)
self.content.as_widget_mut().overlay(
&mut tree.children[0],
layout.children().next().unwrap(),
renderer,
translation,
)
}

fn drag_destinations(
Expand Down

0 comments on commit e3fabf7

Please sign in to comment.