27
Aug
06

Flex 2 and horizontal scrollbars

I was mucking about with viewing the flex unit converter at different screen sizes and noticed that when viewed at a size small enough to require a vertical scroll bar, a horizontal scroll bar would also appear. Basically the introduction of the vertical scrollbar adds 16 pixels to the entire movie, without first removing 16 pixels from the root components current width. I guess you can get around this by giving your root component a padding of 16, or adding the "horizontalScrollPolicy='off'" property to the application tag.

Is anyone aware of any other ways to remedy this behaviour?

Share and Enjoy:
  • del.icio.us
  • Digg
  • Fark
  • Google
  • NewsVine
  • Slashdot
  • StumbleUpon
  • Technorati
  • Yahoo! Buzz

8 Responses to “Flex 2 and horizontal scrollbars”


  1. 1 tuna Oct 12th, 2006 at 2:50 am

    look how i care

  2. 2 Jason Oct 12th, 2006 at 9:11 am

    Did you want a frog or not!

    hehe, hi Tone - just sent an email to Richie. Hope you guys are going well over there.

  3. 3 Brandon Jun 19th, 2007 at 1:21 pm

    was surfing around for a unit converter, not for the example code but to well convert stuff and came across this page. Ironic that I happen to be just diving into flex myself. Anyway, just wanted to drop a line and say great app!

    brandon

  4. 4 Seth Caldwell Aug 4th, 2007 at 4:39 am

    I am having this same problem, its quite annoying that the flex components aren’t aware that the scrollbars take up some of the width or height and resize themselves automatically. I haven’t come up with a good work around yet.

  5. 5 Roaders Dec 18th, 2007 at 10:54 pm

    How about this:

    optionsScrollCanvas.height) ? optionsScrollCanvas.width-16 : optionsScrollCanvas.width}” />

  6. 6 Roaders Dec 18th, 2007 at 10:56 pm

    although obviously that garbled it! try this:

    <mx:Canvas width=”100%” height=”100%” id=”optionsScrollCanvas”>
    <mx:VBox id=”bxPropertyList”
    width=”{(bxPropertyList.height > optionsScrollCanvas.height) ? optionsScrollCanvas.width-16 : optionsScrollCanvas.width}” />
    </mx:Canvas>

  7. 7 Hob Feb 26th, 2008 at 2:35 pm

    Just override the measuredHeight property in script:

    override public function get measuredHeight():Number{
    return (this.horizontalScrollBar)? (super.measuredHeight this.horizontalScrollBar.height):super.measuredHeight
    }

  8. 8 DenisPat Oct 1st, 2008 at 2:02 am

    I’v just had the same problem and fixed it with the VBox minWidth=’0′ minHeight=’0′.
    See: http://bugs.adobe.com/jira/browse/SDK-15567

Leave a Reply

Comment spam protected by SpamBam







Posts this month

August 2006
M T W T F S S
« Jul   Sep »
 123456
78910111213
14151617181920
21222324252627
28293031  
Check out iStockPhoto

Categories

Archives