[Tickit-dev] H/VBox running out of space

Paul LeoNerd Evans leonerd at leonerd.org.uk
Wed Jun 15 17:42:38 BST 2011


The current behaviour of HBox and VBox when given a window smaller than
the minimum size requirements of its children is analogous to that when
it's bigger; the shortfall in columns/rows is distributed among the
child widgets in proportion to the 'expand' setting given by each. If
there's still a shortfall, widgets from the right/bottom start being
truncated or omitted altogether.

I'm wondering - is this sufficient? Should there be more intelligent
behaviours in place? Perhaps in such circumstances as an HBox being used
to implement a status bar, some widgets could be deemed less important
than others; to be omitted entirely if this then gives the remaining a
full allocation of size.

What might the API for this look like? Is it sufficiently useful to put
in the plain HBox/VBox, or would a more custom "StatusBar" widget be
better for this one?

-- 
Paul "LeoNerd" Evans

leonerd at leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://mail.leonerd.org.uk/pipermail/tickit-dev/attachments/20110615/b5f22a7c/attachment.pgp>


More information about the Tickit-dev mailing list