Qt: do not apply fixed size for mdi child windows if border style is bsDialog,bsNone,bsSingle

git-svn-id: trunk@33331 -
This commit is contained in:
zeljko 2011-11-05 10:09:13 +00:00
parent 19a88c4667
commit 667e54c77f

View File

@ -5254,7 +5254,8 @@ end;
procedure TQtMainWindow.Resize(ANewWidth, ANewHeight: Integer);
begin
if (TCustomForm(LCLObject).BorderStyle in [bsDialog, bsNone, bsSingle]) and
if not IsMDIChild and
(TCustomForm(LCLObject).BorderStyle in [bsDialog, bsNone, bsSingle]) and
not (csDesigning in LCLObject.ComponentState) then
QWidget_setFixedSize(Widget, ANewWidth, ANewHeight)
else