diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/gfx_widget.pas | 2 | ||||
-rw-r--r-- | src/gui/gui_label.pas | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/gfx_widget.pas b/src/corelib/gfx_widget.pas index dcb4a133..221c2686 100644 --- a/src/corelib/gfx_widget.pas +++ b/src/corelib/gfx_widget.pas @@ -695,7 +695,7 @@ var dw: integer; dh: integer; begin - FAlignRect.top := 0; + FAlignRect.Top := 0; FAlignRect.Left := 0; FAlignRect.Width := Width; FAlignRect.Height := Height; diff --git a/src/gui/gui_label.pas b/src/gui/gui_label.pas index 96f638a7..66c88f8a 100644 --- a/src/gui/gui_label.pas +++ b/src/gui/gui_label.pas @@ -116,7 +116,8 @@ procedure TfpgLabel.ResizeLabel; begin Width := FFont.TextWidth(FText); Height := FFont.Height; - UpdateWindowPosition; + MoveAndResize(Left, Top, Width, Height); +// UpdateWindowPosition; end; constructor TfpgLabel.Create(AOwner: TComponent); |