lcl: recreateWnd of ScrollBar when we set king inspite of csLoading in ComponentState (bug #0012239)

git-svn-id: trunk@18698 -
This commit is contained in:
paul 2009-02-15 12:59:05 +00:00
parent 3366947be6
commit d9dbf9e4ac

View File

@ -89,14 +89,14 @@ begin
OldHeight:=Height;
Constraints.UpdateInterfaceConstraints;
// switch width and height, but not when loading, because we assume that
// the lfm contains a consistent combination of kind and (width, height)
if csLoading in ComponentState then Exit;
// TODO: Remove RecreateWnd
if HandleAllocated
then RecreateWnd(Self);
// switch width and height, but not when loading, because we assume that
// the lfm contains a consistent combination of kind and (width, height)
if (csLoading in ComponentState) then Exit;
SetBounds(Left,Top,OldHeight,OldWidth);
end;