From 114411716d89ca5df205f1d666e1980a4f5db574 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 30 Oct 2001 08:22:21 +0000 Subject: Calc height here if we need it to check the y position of the cursor. 2001-10-30 Christopher James Lahey * gal/e-text/e-text.c (e_text_reflow): Calc height here if we need it to check the y position of the cursor. svn path=/trunk/; revision=14443 --- widgets/text/e-text.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'widgets') diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index 6911a5da57..8145ebfab6 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -1770,6 +1770,13 @@ e_text_reflow (GnomeCanvasItem *item, int flags) if (e_font_height (text->font) * i < text->yofs_edit) text->yofs_edit = e_font_height (text->font) * i; + if ( text->needs_calc_height ) { + calc_height (text); + gnome_canvas_item_request_update(item); + text->needs_calc_height = 0; + text->needs_recalc_bounds = 1; + } + if (e_font_height (text->font) * (i + 1) - (text->clip_height != -1 ? text->clip_height : text->height) > text->yofs_edit) text->yofs_edit = e_font_height (text->font) * (i + 1) - -- cgit v1.2.3