GNOME Bugzilla – Bug 132514
Set a max height on the expandable entry
Last modified: 2006-09-07 18:06:54 UTC
When pasting a lot of text the entry forces the window to become bigger which isn't very nice.
It would be nice if we somehow could have the entry use scrollbars when if reaches the max size just before starting to expand the window, and disable them again when it shrinks.
Created attachment 72357 [details] [review] proposed patch if the input rush MAX_INPUT_HEIGHT a scrollbar appear and so the height doesn't grow anymore. If the scroll is no more needed it's removed and the input's height can decrease again.
Oh, cool! I wasn't sure this was actually possible to do. One small comment, + g_value_init (&value, G_TYPE_INT); + g_value_set_int (&value, -1); + g_object_set_property (G_OBJECT (sw), "height-request", &value); could be replaced by g_object_set (sw, "height-request", -1, NULL);
Created attachment 72377 [details] [review] better like that Yeah, that's better with g_object_set() ;-)
Committed, thanks.