Qt,Qt5: fixed maximized window with borderstyle = bsnone. issue #39158

This commit is contained in:
Željan Rikalo 2021-10-06 13:46:42 +02:00
parent e8317fb534
commit 29fa1e508e
2 changed files with 12 additions and 0 deletions

View File

@ -616,6 +616,12 @@ begin
end;
{$ENDIF}
end;
// issue #39158
if AWinControl.HandleObjectShouldBeVisible and
(TCustomForm(AWinControl).BorderStyle = bsNone) and
not Widget.IsMdiChild then
ConstraintsChange(AWinControl);
end;
Widget.setVisible(AWinControl.HandleObjectShouldBeVisible);

View File

@ -637,6 +637,12 @@ begin
end;
{$ENDIF}
end;
// issue #39158
if AWinControl.HandleObjectShouldBeVisible and
(TCustomForm(AWinControl).BorderStyle = bsNone) and
not Widget.IsMdiChild then
ConstraintsChange(AWinControl);
end;
Widget.setVisible(AWinControl.HandleObjectShouldBeVisible);