forked from AuroraMiddleware/gtk
Fix GtkCellAreaBox allocate_cells_manually to handle undersized areas.
This commit is contained in:
parent
c6572265cb
commit
9366a345b4
@ -697,7 +697,10 @@ allocate_cells_manually (GtkCellAreaBox *box,
|
||||
|
||||
/* Naturally distribute the allocation */
|
||||
avail_size -= (nvisible - 1) * priv->spacing;
|
||||
avail_size = gtk_distribute_natural_allocation (avail_size, nvisible, sizes);
|
||||
if (avail_size > 0)
|
||||
avail_size = gtk_distribute_natural_allocation (avail_size, nvisible, sizes);
|
||||
else
|
||||
avail_size = 0;
|
||||
|
||||
/* Calculate/distribute expand for cells */
|
||||
if (nexpand > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user