On Tuesday 20 November 2007 16:23, Katarina Machalkova wrote:
I'd like to use this way to announce that with mod-ui transition, HVStretch widget has been dropped and it should no longer be used. Should you still need it in your module, consider using e.g. `Empty, or some combination of `HStretch and `VStretch.
Some more background: HVStretch() was the two-dimensional counterpart of HStretch() and VStretch(), which both are mostly useful in a VBox() or HBox(). But since both VBox() and HBox() operate only in one dimension anyway, only a VStretch() in a VBox() or a HStretch() in a HBox() has any effect. Both widgets could also be written as `VStretch() -> `Empty(`opt(`vstretch)) `HStretch() -> `Empty(`opt(`hstretch)) or as `VStretch() -> `VSpacing(`opt(`vstretch), 0 ) `HStretch() -> `HSpacing(`opt(`hstretch), 0 ) but that looks very ugly and is not very intuitive, of course. In the few places where `HVStretch() was actually used, it was used somewhat incorrectly: In yast2-certify it was used where `VStretch() should have been used, in yast2-ldap-client it was used as a placeholder for `ReplacePoint() contents. In the latter case, `Empty() is much more natural (and tells something like "this is just a dummy that will be replaced soon"). If anybody should really find a real use for the two-dimensional `HVStretch() (which I really doubt), it can be replaced with `HVStretch() -> `Empty(`opt(`hstretch, `vstretch))
The documentation on UI widgets should be updated as well
I have a local copy available at
http://w3.suse.de/~sh/libyui-doc/
CU
--
Stefan Hundhammer