summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2022-10-07 09:03:44 -0700
committerLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2022-10-07 09:03:44 -0700
commit20fd1f2047b2c425398d0b237c6d3031deaaa0c9 (patch)
treee695e04dc46693ce9fa3aae7ed8d8d19cd05e27a
parent77c838011fe6f8f567389d5994584a1a1b8420c5 (diff)
downloadiced-20fd1f2047b2c425398d0b237c6d3031deaaa0c9.tar.gz
iced-20fd1f2047b2c425398d0b237c6d3031deaaa0c9.tar.bz2
iced-20fd1f2047b2c425398d0b237c6d3031deaaa0c9.zip
Render pane grid titlebar after body
Diffstat (limited to '')
-rw-r--r--native/src/widget/pane_grid/content.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/native/src/widget/pane_grid/content.rs b/native/src/widget/pane_grid/content.rs
index 98ce2c4b..8d26c3d8 100644
--- a/native/src/widget/pane_grid/content.rs
+++ b/native/src/widget/pane_grid/content.rs
@@ -115,25 +115,25 @@ where
let show_controls = bounds.contains(cursor_position);
- title_bar.draw(
- &tree.children[1],
+ self.body.as_widget().draw(
+ &tree.children[0],
renderer,
theme,
style,
- title_bar_layout,
+ body_layout,
cursor_position,
viewport,
- show_controls,
);
- self.body.as_widget().draw(
- &tree.children[0],
+ title_bar.draw(
+ &tree.children[1],
renderer,
theme,
style,
- body_layout,
+ title_bar_layout,
cursor_position,
viewport,
+ show_controls,
);
} else {
self.body.as_widget().draw(