From d58cbef4d780ca8217220caa1f7ce3eb2edce7a0 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Mon, 16 Dec 2013 11:56:29 +0800 Subject: [PATCH] Bug #120 Wrong size of horizontal scrollbar For wxWidgets 2.9 and late --- src/xmlctrl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xmlctrl.cpp b/src/xmlctrl.cpp index 439d25d..276ec47 100644 --- a/src/xmlctrl.cpp +++ b/src/xmlctrl.cpp @@ -92,6 +92,11 @@ XmlCtrl::XmlCtrl ( bufferLen = strlen ( DEFAULT_XML_DECLARATION_UTF8 ); } +#if wxCHECK_VERSION(2,9,0) + if ( type != FILE_TYPE_BINARY ) + SetScrollWidthTracking ( true ); +#endif + #if wxCHECK_VERSION(2,9,0) AddTextRaw ( buffer, bufferLen ); #else