Now that I think of it, I'm wondering if it is even necessary to make this configurable in TerraFormSkin. Is there actually a case where we would not want the form labels to be baseline-aligned? I do think that a style is appropriate for FlowPane, though.

On Aug 31, 2009, at 10:56 AM, Greg Brown wrote:

The problem I had was figuring out how to get a baseline value out of a TextArea - any suggestion on where to start?

I think a similar question applies to a vertical BoxPane, for example, or a TablePane. I imagine that a common requirement would be to align the form label with the baseline of the first component in a vertical box pane, or the first row of a table pane. Similarly, we'd probably want to define the baseline of a TextArea as the baseline of the first row.

However, each of these components could make its definition of baseline configurable. For example, BoxPaneSkin could provide a style that allowed a caller to define the baseline as the baseline of the last component instead. I'm not sure we'd need to support that right away, though. We could easily add it later, if it made sense.

G


Reply via email to