aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-text.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-30 16:22:21 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-30 16:22:21 +0800
commit114411716d89ca5df205f1d666e1980a4f5db574 (patch)
tree7b57e1ed5cc5a72c4fc6392ef8e880eb715fb17a /widgets/text/e-text.c
parent4ae909c93b9ccea8f14df6aea16fc11323060f9f (diff)
downloadgsoc2013-evolution-114411716d89ca5df205f1d666e1980a4f5db574.tar.gz
gsoc2013-evolution-114411716d89ca5df205f1d666e1980a4f5db574.tar.zst
gsoc2013-evolution-114411716d89ca5df205f1d666e1980a4f5db574.zip
Calc height here if we need it to check the y position of the cursor.
2001-10-30 Christopher James Lahey <clahey@ximian.com> * 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
Diffstat (limited to 'widgets/text/e-text.c')
-rw-r--r--widgets/text/e-text.c7
1 files changed, 7 insertions, 0 deletions
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) -