Bug #120 Wrong size of horizontal scrollbar

For wxWidgets 2.9 and late
This commit is contained in:
Zane U. Ji 2013-12-16 11:56:29 +08:00
parent 5e1ab6289e
commit d58cbef4d7
1 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,11 @@ XmlCtrl::XmlCtrl (
bufferLen = strlen ( DEFAULT_XML_DECLARATION_UTF8 ); 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) #if wxCHECK_VERSION(2,9,0)
AddTextRaw ( buffer, bufferLen ); AddTextRaw ( buffer, bufferLen );
#else #else