https://bugzilla.novell.com/show_bug.cgi?id=299787#c12
Stefan Hundhammer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #12 from Stefan Hundhammer 2007-08-23 08:34:31 MST ---
Disregard the last comment. I hadn't properly installed my changed version.
As a matter of fact, using HWeight() helps. It reduces the layout priority of
the content of the HWeight widget so that first all other widgets in the same
layout box are satisfied, then the rest is distributed among the widgets with a
weight. If there is only one, it will get the remaining space (the weight value
is not important if it's only one widget with a weight).
So I changed
`HBox(
`HSpacing(),
`Frame( ... )
)
to
`HBox(
`HSpacing(),
`HWeight(1, `Frame( ... )
)
and now the spacing appears again, even if the frame content uses more space
than available.
BTW this is a general layout technique that is useful in many pathological
cases like this one.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.