forked from AuroraMiddleware/gtk
grid: Only pass baselines to children that request it
This commit is contained in:
parent
e7e3ef9d3e
commit
b3fedda29e
@ -1538,7 +1538,7 @@ allocate_child (GtkGridRequest *request,
|
||||
attach = &child->attach[orientation];
|
||||
|
||||
*position = lines->lines[attach->pos - lines->min].position;
|
||||
if (attach->span == 1)
|
||||
if (attach->span == 1 && gtk_widget_get_valign (child->widget) == GTK_ALIGN_BASELINE)
|
||||
*baseline = lines->lines[attach->pos - lines->min].allocated_baseline;
|
||||
else
|
||||
*baseline = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user