summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2011-01-13 00:02:49 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2011-01-13 00:02:49 +0200
commit9029b019267eed33f5e2a879d28200eefbd7a727 (patch)
treeac8589742c51ac29d1b6e00d383c160b9a06c143
parent9c841e73826129758c16d6d7e04b8cdca72b8557 (diff)
downloadfpGUI-9029b019267eed33f5e2a879d28200eefbd7a727.tar.xz
Spinedit: extra check is required due to new resizing behaviour.
-rw-r--r--src/gui/fpg_spinedit.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/fpg_spinedit.pas b/src/gui/fpg_spinedit.pas
index 99c4e697..5c00c91b 100644
--- a/src/gui/fpg_spinedit.pas
+++ b/src/gui/fpg_spinedit.pas
@@ -333,7 +333,8 @@ end;
procedure TfpgAbstractSpinEdit.HandleResize(AWidth, AHeight: TfpgCoord);
begin
inherited HandleResize(AWidth, AHeight);
- ResizeChildren;
+ if not (csLoading in ComponentState) then
+ ResizeChildren;
end;
function TfpgAbstractSpinEdit.GetButtonsBackgroundColor: TfpgColor;