forked from AuroraMiddleware/gtk
textview: Ensure the borders fit into the allocation
https://bugzilla.gnome.org/show_bug.cgi?id=763216
This commit is contained in:
parent
473e346203
commit
25b67af340
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user