I noticed the shortcomings of these functions when I tried to implement a function to scroll the first line of my textbuffer to the top of the control. Worked fine as long as lines weren't wrapped.. not so much when multiple lines wrapped.
By default, scrolling the textbuffer to the top means that your first line is at the bottom, showing only one line, thus leaving a lot of blank space a the top.
|