summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-11-01 10:00:16 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2013-11-01 10:00:16 +0200
commit81dc9b86dc22db4a4cf91ad502199f34a1b6d4b7 (patch)
tree4aa39ef53c6472fa3d23adee0f04e76ceaa1a5e3 /src/gui
parentda9f4e14c90fa2d96ad0834f46349ed882572b45 (diff)
downloadfpGUI-81dc9b86dc22db4a4cf91ad502199f34a1b6d4b7.tar.xz
grid: The extra "+1" caused unnecessary scrolling
This was evident in the Calendar Combobox with the focus date of 30 Nov 2013. The Sunday column was scrolled off the screen, even though there was space for it.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/fpg_basegrid.pas6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/fpg_basegrid.pas b/src/gui/fpg_basegrid.pas
index a6fc930e..ebfaa074 100644
--- a/src/gui/fpg_basegrid.pas
+++ b/src/gui/fpg_basegrid.pas
@@ -632,8 +632,8 @@ begin
// if we don't want any scrollbars, hide them and exit
if FScrollBarStyle = ssNone then
begin
- hideScrollbar (FHScrollBar);
- hideScrollbar (FVScrollBar);
+ hideScrollbar(FHScrollBar);
+ hideScrollbar(FVScrollBar);
exit;
end;
@@ -1475,7 +1475,7 @@ begin
w := 0;
for n := FFocusCol downto FFirstCol do
begin
- w := w + ColumnWidth[n]+1;
+ w := w + ColumnWidth[n];
if w > VisibleWidth then
begin
if n = FFocusCol then