A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Listbox component height

  1. #1
    flashguy
    Join Date
    May 2005
    Location
    In the mountains
    Posts
    341

    Listbox component height

    After some googling without find anything that even get close to the subject I really doubt that there is a solution, but here it goes...

    The AS 2 listbox component. I cannot see a way to dynamically stretch it vertically without to make the font grow/shrink together. I would like to change its height to fit the items count but cannot see how to do that. Any idea?
    Visit my business at http://www.ballooncreator.com - Software Tool For Party Balloons Online Design!

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,785
    Hi,

    Try listBoxName.setSize(100,300);// (width,height)

  3. #3
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,785
    Hi,

    And if you want it to be an exact height as you earlier said, try

    listBoxName.setSize(whatever width you want, listBoxName.rowHeight * item amount);

  4. #4
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,785
    Hi,

    I assume you have it working now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center