diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-01-12 16:49:57 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-01-12 16:49:57 +0200 |
commit | f3372156c15d8fc0229275177b711b5f19a39f45 (patch) | |
tree | a82b8ce30c66b183d57a6640c75f2d78da7a1cc3 /src | |
parent | fcf07507067bbb16ff11331f2fa5f88248b9b4a2 (diff) | |
download | fpGUI-f3372156c15d8fc0229275177b711b5f19a39f45.tar.xz |
UpdateWindowPosition now called irrespectively in MoveandResize.
Because widget positioning is new possible before it is show, we
need to call UpdateWindowPosition any time we set Width, Height,
Top or Left so that it can update the internal state of the
widget correctly.
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/fpg_widget.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/fpg_widget.pas b/src/corelib/fpg_widget.pas index 7c728380..beb0fbe1 100644 --- a/src/corelib/fpg_widget.pas +++ b/src/corelib/fpg_widget.pas @@ -1340,7 +1340,6 @@ begin HandleMove(ALeft, ATop); if (AWidth <> FWidth) or (AHeight <> FHeight) then HandleResize(AWidth, AHeight); - UpdateWindowPosition; end else begin @@ -1350,6 +1349,7 @@ begin Width := AWidth; Height := AHeight; end; + UpdateWindowPosition; end; procedure TfpgWidget.MoveAndResizeBy(const dx, dy, dw, dh: TfpgCoord); |