summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/fpg_listview.pas10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/fpg_listview.pas b/src/gui/fpg_listview.pas
index 8703d6de..889c425c 100644
--- a/src/gui/fpg_listview.pas
+++ b/src/gui/fpg_listview.pas
@@ -1077,7 +1077,7 @@ end;
procedure TfpgListView.MsgPaint(var msg: TfpgMessageRec);
begin
// Optimises painting and prevents Begin[End]Draw and OnPaint event firing
- // in not needed.
+ // if not needed.
if FUpdateCount = 0 then
inherited MsgPaint(msg);
end;
@@ -1417,10 +1417,10 @@ begin
if FVScrollBar.Visible and FHScrollBar.Visible then
begin
Canvas.Color := clButtonFace;
- Canvas.FillRectangle(Width - 2 - FVScrollBar.Width,
- Height - 2 - FHScrollBar.Height,
- Width - 2,
- Height - 2);
+ Canvas.FillRectangle(FHScrollBar.Left+FHScrollBar.Width,
+ FVScrollBar.Top+FVScrollBar.Height,
+ FVScrollBar.Width,
+ FHScrollBar.Height);
end;
if FVScrollBar.Visible then