lcl: added oldautosize ifdefs

git-svn-id: trunk@24055 -
This commit is contained in:
mattias 2010-03-16 22:25:40 +00:00
parent 6ec276af67
commit 7fcc42d5af
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,9 @@
<MainUnit Value="0"/>
<TargetFileExt Value=""/>
</General>
<VersionInfo>
<StringTable Comments="" CompanyName="" FileDescription="" FileVersion="0.0.0.0" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion="0.0.0.0"/>
</VersionInfo>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>

View File

@ -6668,6 +6668,7 @@ begin
FBoundsRealized := NewBoundsRealized;
InvalidatePreferredSize;
{$IFNDEF OldAutoSize}
if AutoSizingAll then begin
// while the LCL is creating handles the widgetset may send default bounds
// we have not yet told the widgetset the final bounds
@ -6678,6 +6679,7 @@ begin
// default values.
exit;
end;
{$ENDIF}
end;
SetBoundsKeepBase(NewLeft, NewTop, Message.Width, Message.Height, Parent <> nil);