diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-10 12:12:01 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-10 12:14:13 +0200 |
commit | d4583568ee4dfb78a36ce24b743da83a114643dd (patch) | |
tree | d4a5d226d14d0a7ebab9abc27e1fac9d02b33579 | |
parent | 579a1ee09ed495680d944faf59a1f3de696fe882 (diff) | |
download | fpGUI-d4583568ee4dfb78a36ce24b743da83a114643dd.tar.xz |
Alignment bugfix: TfpgWidget.DoAlign never checked if widget was visible or not
If widgets are not visible, they are not added to list of widgets
that need to be re-aligned.
-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 572b5cbd..39bb4193 100644 --- a/src/corelib/fpg_widget.pas +++ b/src/corelib/fpg_widget.pas @@ -1226,7 +1226,7 @@ begin if Components[n] is TfpgWidget then begin w := TfpgWidget(Components[n]); - if w.Align = AAlign then + if (w.Align = AAlign) and (w.Visible) then alist.Add(w); end; |