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