From ce39c13e316b3eacdeadea7a150c899d2d350930 Mon Sep 17 00:00:00 2001 From: James Johnson Date: Thu, 11 Jan 2018 11:36:38 -0500 Subject: [PATCH] Don't horizontal scroll in word wrap mode --- src/dlangui/widgets/editors.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dlangui/widgets/editors.d b/src/dlangui/widgets/editors.d index 4a6a252c..6384671e 100644 --- a/src/dlangui/widgets/editors.d +++ b/src/dlangui/widgets/editors.d @@ -2771,7 +2771,8 @@ class EditBox : EditWidgetBase { invalidate(); } else if (rc.left >= _clientRect.width - 10) { // scroll right - _scrollPos.x += (rc.left - _clientRect.width) + _clientRect.width / 4; + if (!_wordWrap) + _scrollPos.x += (rc.left - _clientRect.width) + _clientRect.width / 4; invalidate(); } updateScrollBars();