General Interface is an open source project hosted by the Dojo Foundation

Not clear how to vertically align the text in a TextBox

Not clear how to vertically align the text in a TextBox

Postby olddave » Wed Jun 13, 2012 1:40 am

Hi,

I have several TextBox in my UI. When you click in them the cursor sits in the middle vertically when I need it to sit at the top of the TextBox. I know that style="vertical-align:top" only works for <td> so how do we do it for TextBox?

I also use scrollbar as the Overflow.

Thx.

David
olddave
2-Stars
2-Stars
 
Posts: 41
Joined: Thu Oct 15, 2009 8:20 am

Re: Not clear how to vertically align the text in a TextBox

Postby mongonv » Wed Jun 13, 2012 6:40 am

Hey David,
Can you post a component file that shows what is happening?

I have not seen that effect and could look at your screen if you want.

Ed
User avatar
mongonv (Ed)
5-Stars
5-Stars
 
Posts: 596
Joined: Tue Jul 28, 2009 9:24 am
Location: Reno

Re: Not clear how to vertically align the text in a TextBox

Postby dhwang » Mon Jun 18, 2012 7:00 pm

You mean the edit carat (text | vertical bar cursor) shows up in the middle of the text area?

I assume you have a textarea instead of a textbox since that's the one with multiple line to even have a "middle" from the top rather than "middle" from the left.

Do you have padding that's applied to the textarea, maybe?

Anyway, if you open Firebug and inspect the CSS on the textbox/textarea, you should be able to find out what's causing it.
User avatar
dhwang (Darren Hwang)
GI Committer
GI Committer
 
Posts: 706
Joined: Thu Jun 04, 2009 10:09 am
Location: Palo Alto


Return to GI Developers

Who is online

Users browsing this forum: No registered users and 0 guests

cron