[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Scrolling to bottom of TextView?



On Wed, Jan 12, 2005 at 22:08:04 +0100, Martin Junius wrote:
> A. Pagaltzis wrote:
> 
> >    $text_view->scroll_to_iter( $buf->get_end_iter, 0, FALSE, 0, 0 );
> 
> This of course was my idea at first, too. But ...
> 
> >Although the docs note that this may not always have the desired
> >effect because it may be called prior to line height
> >recalculations.
> 
> ... it didn't work, as you suspected. ;-)

It does not scroll right away. IIRC only scrolls when the idle-handlers
get run (it is witten in the documentation, consult that).

There is also scroll_to_mark. It behaves a little bit differently. The
difference is described in the manual (in the C one). Go look there.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb ucw cz>

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]