mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-30 16:02:51 +02:00
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:
parent
3366947be6
commit
d9dbf9e4ac
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user