summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-06-27 13:21:50 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-06-27 13:21:50 +0000
commitd4435a509366467b3747856dc7c8671669607c9d (patch)
treed7326945cff3336c7cb5b065f1f1832f4231f1db /src/corelib
parenteb703bcee1956bcf075a64eaae2756eb7d48ed42 (diff)
downloadfpGUI-d4435a509366467b3747856dc7c8671669607c9d.tar.xz
* A slight fix for X11 resizing forms with the mouse and alignment processing.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/gfx_widget.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/gfx_widget.pas b/src/corelib/gfx_widget.pas
index 03df3577..d76e88cb 100644
--- a/src/corelib/gfx_widget.pas
+++ b/src/corelib/gfx_widget.pas
@@ -890,9 +890,15 @@ begin
end;
procedure TfpgWidget.MsgResize(var msg: TfpgMessageRec);
+var
+ dw: integer;
+ dh: integer;
begin
// writeln('MsgResize - ', Classname);
+ dw := msg.Params.rect.Width - FWidth;
+ dh := msg.Params.rect.Height - FHeight;
HandleResize(msg.Params.rect.Width, msg.Params.rect.Height);
+ HandleAlignments(dw, dh);
if FFormDesigner <> nil then
begin
FFormDesigner.Dispatch(msg);