Dynamic height for HLayout

Hi,

I would greatly appreciate it if someone could assist me with the following issue:

I am trying to create a message component that will serve other teams in my organization. This message is composed of an icon and textual description, one on side of the other. Therefore I’m thinking of using a HLayout that contains two elements:

  1. A canvas that contains an Icon
  2. A Label that will display the description

The message components should be dynamic in height. Meaning, the longer the description the larger the height is. Width is fixed to some constant pixel size. Of course, I would need a maximum and minimum height defined.

Is there someway of knowing the actual height a component will consume before it is really rendered (I mean through SmartGWT APIs)? since if I’m not mistaken, the layout components I am using require explicit height in pixels or percents (they cannot be configured to have their size determined by their content).

Should I be tackling the issue some other way?

Thanks in advance,
NaT

An overflow:visible component will size to content. In this case, set the HLayout to the fixed width, set it’s height small, and leave the default of overflow:visible in place.