From 88d533137148043e9a0cabe94c055745d63f120d Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Sun, 3 Nov 2024 15:53:32 +0900 Subject: [PATCH] Update window.rs --- crates/egui/src/containers/window.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/egui/src/containers/window.rs b/crates/egui/src/containers/window.rs index 9b5de167df4..09569a999ee 100644 --- a/crates/egui/src/containers/window.rs +++ b/crates/egui/src/containers/window.rs @@ -593,7 +593,8 @@ impl<'open> Window<'open> { x: outer_rect.size().x, y: title_bar_height, }, - ); + ) + .shrink(frame_stroke.width); title_rect = area_content_ui.painter().round_rect_to_pixels(title_rect);