Qt: do not invalidate client rect cache in scrollable form viewport if we are embedded form (eg. docked).

git-svn-id: trunk@43243 -
This commit is contained in:
zeljko 2013-10-14 06:47:44 +00:00
parent cda819b2eb
commit 6471321801

View File

@ -6066,7 +6066,9 @@ begin
':',LCLObject.Name)
{$ENDIF}
{$IFDEF QTSCROLLABLEFORMS}
LCLObject.InvalidateClientRectCache(True);
// do not invalidate clientRectCache if we are embedded (eg. docked)
if not Assigned(LCLObject.Parent) then
LCLObject.InvalidateClientRectCache(True);
{$ENDIF}
end else
LCLObject.DoAdjustClientRectChange(HaveVertBar or HaveHorzBar);