# HG changeset patch # User Ka-Hing Cheung # Date 1205718654 0 # Node ID 82c4e6b589d0e26df290a3b28f4cda3b82b2c846 # Parent b5af505a7b024ab6b79ef3d20f5de794cbfcfe21 never decrease the height by less than half a line, fixes the jumping issue when the text typed doesn't use the default font for me (such as having Sans as the default font, but typing Chinese which uses a Chinese font with a different line height) diff -r b5af505a7b02 -r 82c4e6b589d0 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sun Mar 16 20:37:49 2008 +0000 +++ b/pidgin/gtkconv.c Mon Mar 17 01:50:54 2008 +0000 @@ -4393,7 +4393,7 @@ height += (oneline.height + pad_inside) * (wrapped_lines - lines); diff = height - gtkconv->entry->allocation.height; - if (diff == 0) + if (diff == 0 || (diff < 0 && -diff < oneline.height / 2)) return FALSE; gtk_widget_size_request(gtkconv->lower_hbox, &sr);