summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docview/components/richtext/RichTextView.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/docview/components/richtext/RichTextView.pas b/docview/components/richtext/RichTextView.pas
index 2a18b6c2..634a80b0 100644
--- a/docview/components/richtext/RichTextView.pas
+++ b/docview/components/richtext/RichTextView.pas
@@ -1014,12 +1014,12 @@ begin
if FHScrollBar.Visible then
Dec(VHeight, FScrollbarWidth);
- FHScrollBar.Top := Height -FHScrollBar.Height - 2;
+ FHScrollBar.Top := Height - 2 - FScrollbarWidth;
FHScrollBar.Left := 2;
FHScrollBar.Width := HWidth;
FVScrollBar.Top := 2;
- FVScrollBar.Left := Width - FVScrollBar.Width - 2;
+ FVScrollBar.Left := Width - 2 - FScrollbarWidth;
FVScrollBar.Height := VHeight;
FVScrollBar.UpdateWindowPosition;