Re: Distributing extra space to children

Le septidi 27 frimaire, an CCXIX, Robert Pearce a écrit :
> - Allocate a sufficiently large table, say ten cells across.
> - Place the first child in cells 0..6 (i.e. attach with 0,7)
> - Place the second child in cells 7..9 (i.e. attach with 7,10)
> - Set the table to be homogenous
> Because the table cells are all equal sized, and the child widgets
> occupy 7 and 3 respectively, they get 70% and 30% of the space.

They get 70% and 30% of the whole space, not 70% and 30% of the extra space
when all children already had their minimum need.


  Nicolas George

Attachment: signature.asc
Description: Digital signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]