-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi there,
just a simple example anyone can try on the online demo
<zk> <window width="100px"> <hbox width="100%" widths="80%,20%"> <image src="/img/Centigrade-Widget-Icons/Globe-128x128.png"/> <label value="Hello world" /> </hbox> <hbox width="100%" widths="20%,80%"> <label value="Hello world" /> <image src="/img/Centigrade-Widget-Icons/Globe-128x128.png"/> </hbox> </window> </zk>
In other words: when the source image does not fit into the space mandated by the containing box widhts attribute it just protrudes into the space reserved for the next siblings.
Any idea as to how to overcome this?
César Varona
Hi,
You can try to specify the width of the image to be 100%.
Hi,
it works, although it's a bit strange that width=100% has a different meaning on images ("render it wholly, rescaling it if necessary") than on any other component ("make it fill up all the space assigned to it", as I guess).
Kind regards
César Varona
Asked: 2010-06-30 05:48:13 +0800
Seen: 172 times
Last updated: Jul 08 '10