Tracy:
 
Yes that will work, but I only wanted the height to be 35, which
allows for 2 lines.  The reason is "screen real estate".
 
If I set it the Canvas height to 35, then I get horizontal and vertical
scroll bars showing up before I even type anything.
 
The lowest number I can go is 44.
 
Jim's research seems to indicate a hard-coded issue if the TextArea
is less than 40(Flex 3).
 
override public function get verticalScrollPolicy():String

{

return height <= 40 ? ScrollPolicy.OFF : _verticalScrollPolicy;

}

 
I guess I will need to step back and rethink.
 
I was beginning to think I was going crazy.
 
Anyway, guys . . . . thanks for the help.
 
Jack

  _____  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Monday, May 05, 2008 6:05 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TextArea but no scroll bars showing up




Indeed, the TextArea is not behaving as I would expect.  Slap it in a
Canvas, and it will work ok.  

  <mx:Canvas width="200" height="60" >

    <mx:TextArea id="ta" width="100%" height="100%" />

  </mx:Canvas>

Tracy

  _____  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jack @ Zingit
Sent: Monday, May 05, 2008 6:26 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] TextArea but no scroll bars showing up


layout="absolute" has no bearing.

I tried the following code and the scroll bar does not show up
when I type in text beyond the 2nd line.

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe. <http://www.adobe.com/2006/mxml>
com/2006/mxml" xmlns="*"
creationPolicy="auto" width="100%" height="100%">

<mx:TextArea width="200" height="35"/>

</mx:Application> 

Any thoughts?

Thanks,

Jack

-----Original Message-----
From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com]
On
Behalf Of Jim Hayes
Sent: Monday, May 05, 2008 3:40 PM
To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
Subject: RE: [flexcoders] TextArea but no scroll bars showing up

Try yourTextArea.validateNow() after adding the extra text.
I seem to remember that works, though I can't swear to it I'm afraid (and
can't check just now).

-----Original Message-----
From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com on
behalf of Jack @ Zingit
Sent: Mon 05/05/2008 19:29
To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
Subject: [flexcoders] TextArea but no scroll bars showing up


Flex 2.01

This seems so dumb, but I can not figure this out.

I am using Modules with layout="absolute".

In a MXML file I have a TextArea where I have set the width="300" and
height="35".

<mx:TextArea top="10" left="30" width="300" height="35"/>

I can add text beyond 2 lines, but no scroll bar is displayed.

If I set the height="100%" then the scroll bar shows up when I type text
beyond 2 lines.

I can also place it inside a VBox and set height="100%", but that just adds
unnecessary code. That also causes other positioning problems.

However, I want/need to set the TextArea's height.

What am I missing? Is there a simple way?

Thanks,

Jack 

__________________________________________________________
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office: 4th
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
VAT registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied
and used only by the intended recipient. If you have received it in error,
please contact the sender immediately by return e-mail or by telephoning
+44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
contents to any person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
__________________________________________________________

 

Reply via email to