mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
[window] fix close button position on narrow windows
This commit is contained in:
@@ -595,7 +595,7 @@ impl TitleBar {
|
|||||||
) {
|
) {
|
||||||
if let Some(content_rect) = content_rect {
|
if let Some(content_rect) = content_rect {
|
||||||
// Now we know how large we got to be:
|
// Now we know how large we got to be:
|
||||||
self.rect.max.x = content_rect.max.x;
|
self.rect.max.x = self.rect.max.x.max(content_rect.max.x);
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(open) = open {
|
if let Some(open) = open {
|
||||||
|
|||||||
Reference in New Issue
Block a user