PDA

View Full Version : Combobox fontsize


awhite
01-20-2006, 07:42 AM
Hi,

I have a combobox which has a fontsize=12 (set on the canvas or on the combobox directly)

<combobox name="cb" width="200" fontsize="12">

And this cuts off the bottom border of the combo.

If I set the height of the combo, the border doesn't adjust according to the height...

Any suggestions?

jstretch
01-20-2006, 11:04 AM
You'll probably have to edit basecombobox.lzx


<!--- the x position of the text. default: 2 -->
<attribute name="text_x" value="2" type="number"/>

<!--- the y position of the text. default: 2 -->
<attribute name="text_y" value="2" type="number"/>



<view name="interior"
x="$once{classroot.text_x}"
y="$once{classroot.text_y}"
width="$once{classroot.text_width}"
height="${classroot.height - 2*classroot.bordersize - 2}"

awhite
01-20-2006, 11:58 AM
I looked at this as well and wanted to avoid extending or modifying...

What I don't get is that it looks like classroot.height - (border) should work fine if I set the height on the combobox.

I think the interior height is acutally being set correctly. I guess somewhere I'm missing where where it draws the border ignoring the height setting.