PDA

View Full Version : Setting Tabelement height


Pixelpusher
05-04-2004, 07:30 AM
I'm donig my first steps with Laszlo (great dev env!) but got hung up on setting the height (40px) of a tabelement bar.

This code seem not to work:

<tabslider width="300" height="200">
<tabelement height="40" text="Tabelement One" />
<tabelement text="Tabelement Two" />
<tabelement text="Tabelement Three" />
</tabslider>

What's the trick? The attribute height="40" does nothing in this context.

Thanks

antun
05-04-2004, 09:07 AM
Have you tried setting the mintabheight attribute of tabslider? That should set the closed height, which I'm guessing is what you were trying to do.

-Antun

Pixelpusher
05-06-2004, 01:53 AM
Inserting the mintabheight attribute does not make any difference! What am I doing wrong?

My code now looks like this. The displayed height is default 22px.

<tabslider width="300" height="200" mintabheight="40">
<tabelement text="Tabelement One" />
<tabelement text="Tabelement Two" />
<tabelement text="Tabelement Three" />
</tabslider>

antun
05-06-2004, 08:21 AM
Oops - my bad. I just looked over the docs for tabslider (http://www.laszlosystems.com/lps-2.1/docs/lzx-reference/tabslider.html), and found that there is a minheight attribute of tabelement:


<canvas>
<tabslider width="300" height="200">
<tabelement text="Tabelement One" minheight="60" />
<tabelement text="Tabelement Two" />
<tabelement text="Tabelement Three" />
</tabslider>
</canvas>


Is that what you were looking for?

-Antun

Pixelpusher
05-06-2004, 08:22 AM
yes, thanks!!