Did you happen to see the GIF I posted showing the baselines?

If you look at the text in the edittext control, it looks like the text
baseline is too high.

There's more whitespace below the text than above.

I think if the text baseline was two pixels lower, it would be perfect.

Also, and this might be related, the whole control seems taller than it
needs to be.  It should be the same height as an editable combobox.

When I try to resize the edittext control to be the same height as a
combobox, part of the top border (bezel?) gets cut off.




-----Original Message-----
From: Benjamin Shine [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 16, 2006 12:49 AM
To: William Krick
Cc: [email protected]
Subject: Re: [Laszlo-user] aligning labels with controls



On Feb 15, 2006, at 10:29 AM, William Krick wrote:

> Is there some way to align a text label with a control?
>
> The example below shows all the things I tried, the only one that
> works is
> explicitly setting the "y" on the label.
>
> Hardcoding numbers for alignment just seems wrong.
>
> Is there something I'm missing?
>

Nope, you're not missing anything, I don't think.
Hardcoding y values is the way to get the exact look you want. What
looks "right" is sometimes when the baselines of text are aligned, or
sometimes when the top of the text is aligned with the top of the
control. "Align baselines" isn't a concept that OpenLaszlo supports,
so you might want to codify the proper y relationships by making a
class that combines the combobox and the label.

benjamin shine
software engineer
[EMAIL PROTECTED]



_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to