From 1033917f37d01f2b826a16b4e71ba6a6fd9ef00e Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Fri, 27 Aug 2021 15:56:38 +1000 Subject: Bug [#2271] Fix disabling horizontal scrollbar in non-wrapping mode. --- cocoa/ScintillaCocoa.mm | 2 +- doc/ScintillaHistory.html | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 242cd4162..91bc55987 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1964,7 +1964,7 @@ bool ScintillaCocoa::SetScrollingSize(void) { CGFloat docWidth = scrollWidth; bool showHorizontalScroll = horizontalScrollBarVisible && !Wrapping(); - if (!showHorizontalScroll) + if (Wrapping()) docWidth = clipRect.size.width; NSRect contentRect = {{0, 0}, {docWidth, docHeight}}; NSRect contentRectNow = inner.frame; diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 98251fde9..0ae2e9b42 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -601,6 +601,10 @@ Bug #2268.
  • + On Cocoa, fix disabling horizontal scrollbar in non-wrapping mode. + Bug #2271. +
  • +
  • On Cocoa, ensure cursor and background images are loaded.
  • -- cgit v1.2.3