Commit d2f2c0b3 authored by Željan Rikalo's avatar Željan Rikalo 🏊🏼
Browse files

Qt: do not send resize event on restore of minimized mdichild form. issue #27518

git-svn-id: trunk@47939 -
parent ccca0b9d
......@@ -7260,9 +7260,20 @@ begin
 
Msg.SizeType := Msg.SizeType or Size_SourceIsInterface;
 
Msg.Width := Word(getWidth);
Msg.Height := Word(getHeight);
{Mdichild sends size of minimized title, and that's bad, after restore client
rect is mismatched and provokes OnResize events.We are sending
to the LCL Width and Height of LCLObject so resize event won't trigger.
issue #27518}
if IsMDIChild and Assigned(LCLObject) and
(getWindowState and QtWindowMinimized <> 0) then
begin
Msg.Width := Word(LCLObject.Width);
Msg.Height := Word(LCLObject.Height);
end else
begin
Msg.Width := Word(getWidth);
Msg.Height := Word(getHeight);
end;
DeliverMessage(Msg);
end;
 
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment