summaryrefslogtreecommitdiff
path: root/docview/components
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-10-23 13:09:59 +0100
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-10-23 13:09:59 +0100
commit13fd38ff9f564cf9ec312754c1a36d5a9fb5d897 (patch)
tree21e99171b49093dae298ec43aa338f818f5508d6 /docview/components
parent12ea2e696ef048a09e1d742a7ce94abd9fb749dc (diff)
downloadfpGUI-13fd38ff9f564cf9ec312754c1a36d5a9fb5d897.tar.xz
richview: Removed the extra margin for text at the top and bottom of the client area
There was a hard-coded 2px margin at the top and bottom of the text client area. So when scrolling the text disappeared 2px away from the actual widget border. This was inconsistent with other text widgets in fpGUI, and I simply didn't like it either. So GetTextAreaRect() now returns the same values as GetDrawRect().
Diffstat (limited to 'docview/components')
-rw-r--r--docview/components/richtext/RichTextView.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/docview/components/richtext/RichTextView.pas b/docview/components/richtext/RichTextView.pas
index 7f649723..55395709 100644
--- a/docview/components/richtext/RichTextView.pas
+++ b/docview/components/richtext/RichTextView.pas
@@ -1248,7 +1248,7 @@ end;
Function TRichTextView.GetTextAreaRect: TfpgRect;
begin
Result := GetDrawRect;
- InflateRect(Result, -2, -2);
+// InflateRect(Result, -2, -2);
end;
function TRichTextView.GetTextAreaHeight: longint;