Revision: 11035 http://gmat.svn.sourceforge.net/gmat/?rev=11035&view=rev Author: tgrubb Date: 2012-11-02 15:59:28 +0000 (Fri, 02 Nov 2012) Log Message: ----------- - Fix for GMT-2978 Script editor horizontal scroll bar not working properly It appears that this bug is hard to fix efficiently using our current version of wxwidgets and the wxStyledTextCtrl. The current code tries to SetScrollWidth in the OnSize event. However, it uses the GetClientSize method which has nothing to do with the size of the lines. In wxWidgets 2.9 there is a SetScrollWidthTracking method (Exposed from scintilla) which should do what we want. For now, I have changed OnSize to iterate through the entire document finding the TextWidth of the longest line assuming no style (if we ever allow font size changes, this code will not work)
Modified Paths: -------------- trunk/src/gui/view/Editor.cpp This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ Gmat-svn mailing list Gmat-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gmat-svn