textview: Ensure the borders fit into the allocation

https://bugzilla.gnome.org/show_bug.cgi?id=763216
This commit is contained in:
Timm Bäder 2016-03-09 11:15:34 +01:00
parent 473e346203
commit 25b67af340

View File

@ -4003,7 +4003,10 @@ gtk_text_view_size_request (GtkWidget *widget,
border_width = gtk_container_get_border_width (GTK_CONTAINER (text_view));
requisition->width += border_width * 2;
requisition->height += border_width * 2;
requisition->height += priv->top_border + priv->bottom_border;
requisition->width += priv->left_border + priv->right_border;
tmp_list = priv->children;
while (tmp_list != NULL)
{