Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-08-2012, 08:13 PM   #1
Blkhwks19
Member
 
Join Date: Oct 2006
Posts: 85
Default FB 4.6 Callout, TextArea not increasing in height

I have a mobile app built with Flash Builder 4.6. In my app I have a button that, when tapped, opens a Callout, which contains a spark TextArea. I want the TextArea to be several lines tall (and the Callout to increase in height accordingly), but the TextArea is only 2 lines tall. You can enter in as much text as you want, but you can only see 2 lines at a time.

Here's what I've currently got:
Code:
<s:Callout id="co" width="100%" height="100%">
			<s:layout>
				<s:VerticalLayout/>
			</s:layout>
			<s:ActionBar width="100%" title="Info" defaultButtonAppearance="beveled">
				<s:navigationContent>
					<s:Button id="cancel" label="Cancel" click="coCancel_clickHandler(event)"/>
				</s:navigationContent>
				<s:actionContent>
					<s:Button id="update" label="Update" click="coUpdate_clickHandler(event)" chromeColor="#009900"/>
				</s:actionContent>
			</s:ActionBar>
			<s:TextArea id="ta" width="100%" height="100%"/>	
		</s:Callout>
I've tried setting height="100%" on both the callout and the textarea, that didnt do anything. Ive tried setting the heightInLines proeprty on the textarea, that didnt seem to do anything either.

Then i read about the TextArea's typicalText property. If you set it to some dummy text, the textarea will use the dummy text to set the size of the textarea, but it will never display the dummy text.

The problem is that, since I need the textarea to be several lines tall (like 20-ish) I need to bind typicalText to a string variable. Well when defining the string variable, I dont know how to insert line breaks into a string.

If I can get that figured out I can try typicalText again, but otherwise Im at a loss how to make my textarea taller by default. Im not sure if it has anything to do with the fact that its inside a callout or not...

Any help would be really appreciated!!
Blkhwks19 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:22 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.