Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-28-2009, 02:31 PM   #1
Betard
AS3 In Training...
 
Join Date: Mar 2008
Posts: 18
Default ComboBox Multiline or word-wrap (Flex 3)

Hi There,

I have a ComboBox and I am running into an issue with the drop-down items being 'cut off' due to their length exceeding the ComboBox width, I have set the dropdownWidth to be wider which helped with many of the items, but I can not set that width any wider without affecting my desired layout.

Is there a way to have the string wrap if it does not fit the set width? Thus, taking up 2 lines worth of space for that particular item.
Betard is offline   Reply With Quote
Old 01-28-2009, 04:11 PM   #2
drkstr
Flexpert
 
drkstr's Avatar
 
Join Date: Sep 2006
Location: Seattle, WA: USA
Posts: 1,587
Default

I think you should be able to set the itemRenderer of the ComboBox to a Text component that wraps it's text.


Best Regards,
~Aaron
drkstr is offline   Reply With Quote
Old 01-28-2009, 04:58 PM   #3
Peter Cowling
quantum tunneler
 
Join Date: Sep 2008
Location: London, UK
Posts: 882
Default

The ever-cool flex examples blog does a good job of illustrating this one.
Peter Cowling is offline   Reply With Quote
Old 01-28-2009, 05:03 PM   #4
Betard
AS3 In Training...
 
Join Date: Mar 2008
Posts: 18
Default

Thanks Peter and drkstr, I'll give these solutions a look and see if I can adapt.

Much Appreciated!
Betard 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiline without word wrap mram ActionScript 2.0 0 01-19-2009 03:28 AM
Fully multiline Combobox jdavid.corcoles Components 1 11-04-2008 07:35 AM
[AS2] Multiline ComboBox Pir8 97 Components 0 08-26-2008 03:34 PM
Datagrid word wrap gsinibaldi Components 3 09-14-2005 03:04 PM
Word Wrap and Linebreaks, oh my! FLASHfreak1 ActionScript 1.0 (and below) 4 02-24-2004 02:27 PM


All times are GMT. The time now is 06:30 PM.

///
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.