mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
table-layout: Fix x/y-expand for spanning actors
Ported to ClutterTableLayout from MxTable:
239e53146a
https://bugzilla.gnome.org/show_bug.cgi?id=672557
This commit is contained in:
parent
16d28853fa
commit
8c0be4181b
@ -859,6 +859,9 @@ calculate_col_widths (ClutterTableLayout *self,
|
||||
columns[i].visible = TRUE;
|
||||
priv->visible_cols += 1;
|
||||
}
|
||||
|
||||
if (!columns[i].expand)
|
||||
columns[i].expand = meta->x_fill;
|
||||
}
|
||||
min_width += priv->col_spacing * (meta->col_span - 1);
|
||||
pref_width += priv->col_spacing * (meta->col_span - 1);
|
||||
@ -1134,6 +1137,9 @@ calculate_row_heights (ClutterTableLayout *self,
|
||||
rows[i].visible = TRUE;
|
||||
priv->visible_rows += 1;
|
||||
}
|
||||
|
||||
if (!rows[i].expand)
|
||||
rows[i].expand = meta->y_fill;
|
||||
}
|
||||
|
||||
min_height += priv->row_spacing * (meta->row_span - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user