Hi,
I'm trying to write a simple HLayout that contains an image (with click option) on the left, and a label on the right, with empty space between them.
The width of the image is unknown because the image source can be changed.
The problem is, that the imgButton takes all the space instead of being set to the exact image size. how can i change it?
SmartClient version : v8.3p_2013-01-21/PwerEdition Development Only
problem is the same for all browsers.
I'm trying to write a simple HLayout that contains an image (with click option) on the left, and a label on the right, with empty space between them.
The width of the image is unknown because the image source can be changed.
The problem is, that the imgButton takes all the space instead of being set to the exact image size. how can i change it?
Code:
isc.HLayout.create({ height:"50", width:"100%", members:[ isc.ImgButton.create({ backgroundColor:"red", imageType:"normal", showRollOver:false, src:"other/star.gif" }), isc.LayoutSpacer.create(), isc.Label.create({ contents:"Test" }) ] })
SmartClient version : v8.3p_2013-01-21/PwerEdition Development Only
problem is the same for all browsers.
Comment