[StTable] Clamp children to integral positions
This commit is contained in:
parent
01c493565f
commit
04f33e8dc7
@ -234,12 +234,12 @@ st_table_homogeneous_allocate (ClutterActor *self,
|
|||||||
col_spacing = priv->col_spacing;
|
col_spacing = priv->col_spacing;
|
||||||
row_spacing = priv->row_spacing;
|
row_spacing = priv->row_spacing;
|
||||||
|
|
||||||
col_width = (content_box->x2 - content_box->x1
|
col_width = (int) (content_box->x2 - content_box->x1
|
||||||
- (col_spacing * (priv->n_cols - 1)))
|
- (col_spacing * (priv->n_cols - 1)))
|
||||||
/ priv->n_cols;
|
/ priv->n_cols + 0.5;
|
||||||
row_height = (content_box->y2 - content_box->y1
|
row_height = (int) (content_box->y2 - content_box->y1
|
||||||
- (row_spacing * (priv->n_rows - 1)))
|
- (row_spacing * (priv->n_rows - 1)))
|
||||||
/ priv->n_rows;
|
/ priv->n_rows + 0.5;
|
||||||
|
|
||||||
children = st_container_get_children_list (ST_CONTAINER (self));
|
children = st_container_get_children_list (ST_CONTAINER (self));
|
||||||
for (list = children; list; list = list->next)
|
for (list = children; list; list = list->next)
|
||||||
|
Loading…
Reference in New Issue
Block a user