summaryrefslogtreecommitdiff
path: root/docview
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2010-02-24 00:23:22 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2010-02-24 00:23:22 +0200
commit43d97cb2d661aafa8a35ca1cf6b7d47278f9f9ce (patch)
treea438c02a020db1945a397309cf2e67091634ac10 /docview
parentbf392ef8db5396c12eeb0adffe47c1e0ed312dc1 (diff)
downloadfpGUI-43d97cb2d661aafa8a35ca1cf6b7d47278f9f9ce.tar.xz
docview: Give a more accurate draw width to TRichTextLayout.
This still contains one issue. We need to ask TRichTextLayout to calculate lines and word wrapping, giving the maximum text width available. Well, if text wrapping occurs and the text is long enough to require scrolling, we suddenly need to take the scrollbar width into account for word wrapping!! A chicken and egg situation. :-( This needs to be fixed somehow!! Signed-off-by: Graeme Geldenhuys <graemeg@gmail.com>
Diffstat (limited to 'docview')
-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 39e25d7a..e50f2b62 100644
--- a/docview/components/richtext/RichTextView.pas
+++ b/docview/components/richtext/RichTextView.pas
@@ -1012,7 +1012,7 @@ ProfileEvent('DEBUG: TRichTextView.Layout 4');
FImages,
FRichTextSettings,
FFontManager,
- DrawWidth-(FScrollbarWidth*6) );
+ DrawWidth-(FScrollbarWidth{*6}) );
ProfileEvent('DEBUG: TRichTextView.Layout 5');