[window] fix close button position on narrow windows
This commit is contained in:
parent
8b1f02f22c
commit
cde1e05853
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue