diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-03-08 10:36:25 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-03-08 10:36:25 +0200 |
commit | d68d7a267cc4bbc17a566016591e5ddaec804581 (patch) | |
tree | b1849a6924898a855ae9573d73904c874a4592c4 /src/gui | |
parent | b0b1b7c31b3e8f45e42d9d5f05d2e4f9f06271b7 (diff) | |
download | fpGUI-d68d7a267cc4bbc17a566016591e5ddaec804581.tar.xz |
Combobox margin fix
When painting the combobox did not take into account that the margin applies
to both the left and right side of the combobox.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/fpg_combobox.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/fpg_combobox.pas b/src/gui/fpg_combobox.pas index 19028530..d0fc01c1 100644 --- a/src/gui/fpg_combobox.pas +++ b/src/gui/fpg_combobox.pas @@ -722,7 +722,7 @@ begin Canvas.SetColor(clWindowBackground); Canvas.SetTextColor(FTextColor); r.Left := r.Left + Margin; - r.Width := r.Width - Margin; + r.Width := r.Width - (Margin*2); end; Canvas.FillRectangle(r); |