How do I get constraints to adjust when scroll bars are shown?

Hi All,
I've got the following page setup, with constraints that causes everything (datagrid, content grid, etc.) to grow and shrink when the user adjusts the size of the window.
Now, the problem is, if there are enough controls on the page to require vertical scrolling (e.g., if I resize the window, or change to another state that has more controls on the page), and it adds vertical scroll bars, the controls are not reduce in size, which means that some of them are now underneath the vertical scrollbar, which causes a horizontal scrollbar to appear.  Like this:
Right now the constraint on all the controls is right="10", and what I want is for it to be 10 pixels from the right of the usable canvas--so if a scrollbar appears, it should be 10 pixels from the left edge of the scrollbar.  If there is no scrollbar, it should be 10 pixels from the edge of the viewport.
This is the way the browser treats scrollbars.  How do I get this behavior in Flex?
  -Josh

You could add a right padding to your controls to cause them to stay 
away from the scrollbars, remember that scrollbars aren't taken into 
account during controls layout.
Sincerely,
Michael
El 04/05/2009, a las 9:42, JoshBeall <[email protected]> escribió:
>
Hi All,
>
I've got the following page setup, with constraints that causes 
everything (datagrid, content grid, etc.) to grow and shrink when 
the user adjusts the size of the window.
>
http://www.joshbeall.com/personal/flexconstraints1.png
>
Now, the problem is, if there are enough controls on the page to 
require vertical scrolling (e.g., if I resize the window, or change 
to another state that has more controls on the page), and it adds 
vertical scroll bars, the controls are not reduce in size, which 
means that some of them are now underneath the vertical scrollbar, 
which causes a horizontal scrollbar to appear.  Like this:
>
http://www.joshbeall.com/personal/flexconstraints2.png
>
Right now the constraint on all the controls is right="10", and 
what I want is for it to be 10 pixels from the right of the usable 
canvas--so if a scrollbar appears, it should be 10 pixels from the 
left edge of the scrollbar.  If there is no scrollbar, it should be 
10 pixels from the edge of the viewport.
>
This is the way the browser treats scrollbars.  How do I get this 
behavior in Flex?
>
  -Josh
>

Similar Messages

  • HT204406 HOW CAN I GET BACK MY RIGHT SIDE SCROLL BAR?

    how can I get back the right side scroll bar in I-Tunes?

    I am missing the right scroll bar in mail only i need help to get it back

  • How do I get rid of an unnecessary scroll bar? IE10

    Hi,
    I'm using RH 9.0.2.271, Webhelp, Zoom Search
    Among the many gifts IE10 has given me, I have acquired an extra scrollbar when displaying the documentation in IE10. This vertical scrollbar appears to the outside right of my content page.
    When the content pane correctly requires a scrollbar, I now have 2, and inside one (correct) and an outside one (not correct).
    The 2nd outside scrollbar becomes INACTIVE when I switch to compatibility view in IE10, but it is still there!
    How can I get rid of this annoying scrollbar, active or inactive, for once and for all?
    Things I've tried to do to elimate this extra outside scrollbar:
    1. Turned off the skin thinking my buttons are now too large when displayed in IE10. Nothing would surprise me. No change.
    2. Change the magnification of IE ; zoomed in/out. No change.
    3. Asked a colleague to test. No change.    
    4. Played with the TOC pane size. No change.
    5. For fun, eliminated the white space on the home page. The scrollbar appears even on the home page where there is minimal text.
    6. Looked at the CSS - no idea what would be effective.
    7. Tested in Firefox. No change, scrollbars are still there. 
    I also have a horizontal scrollbar in IE10, but I still have more testing to do before I post
    thanks in advance!

    My guess is there is some style in the CSS giving an issue.
    When you open only the topic (with skin invisible), do you then also see this scroll bar?
    Also try to add the following CSS to the BODY definition:
    margin: 0;
    padding: 0;
    The x- definitions are RoboHelp control definitions. They are not CSS and RoboHelp uses them to give a Word-like experience in the interface. They are ignored by browsers.
    Greet,
    Willam

  • How do I get signed into Icloud when it says my apple id is valid but not an icloud acct?

    How do I get signed into Icloud when it says my apple id is valid but not an icloud acct?

    You will have to sign in to I cloud on any of the iOS device with version 5 or above  once with your Apple Id to use your Apple Id as I cloud account. So if you have an iPhone iPad or iPod touch with iOS 5 or later.
    On your iOS device go to settings > I cloud and sign in and you should be able to use your Apple Id as an icloud Id.

  • I have the new 2011 macbook pro, with lion preinstalled. I want to change the harddrive. I have backed up everything on time machine. when i put my new blank hard drive in will the lion screen startup.How do i get the lion dmg when i am already using lion

    I have the new 2011 macbook pro, with lion preinstalled. I want to change the harddrive. I have backed up everything on time machine. when i put my new blank hard drive in will the lion screen startup.How do i get the lion dmg when i am already using lion

    NicholasLiban -
       When you use the Lion restore as described, it does a fresh install on the hard drive that you can select at the beginning of the process.  This provides a complete install of the very latest version of Lion, including the recovery partition.  The drive that you choose for the installation destination winds up like what you would have on a brand new computer from Apple. 
       - Randy

  • How do you get money credited back when your child mistakenly buys an app while playing a free kids game?

    How do you get money credited back when your child mistakenly buys an app while playing a free kids game?  We need to refund the charges and apps that were mistakenly purchased by a child while playing a free kids game on Ipad.

    There are no refunds, but you can try contacting itunes support and asking for an exception.
    Click "Support" at the top of this page, then click the link under "Contact Us".

  • In Elements 12, how do I get thumbnails to show when opening a file?

    In Elements 12, how do I get thumbnails to show when opening a file?

    When in iPhoto (photos, library, an album, whatever, etc.) and I try to position the thumbnails at the top of the page I am unable to do so. In the "View" menu of iPhoto, then "Thumbnails" at the bottom, then all the items in the menu are grayed out. I have tried to go to iPhoto prefences and try there, but no luck. I get the beachball turning for a few minutes, then it stops, but still no luck.
    I have iPhoto 08, OS 10.5.8, anda PowerBook G4, 17"
    Thanks, and sorry for the brief/incomplete question.

  • How do i get my ipod unlocked when in diabled mode?

    how do i get my ipod unlocked when it is in disabled mode? After several attempts to put password in.I have already been on Itunes and restored an updated everything and still wont work.

    Restore.  Everything except the password will be restored.  Connect via cable to the computer that you use for sync.  Be forewarned that it takes a long time.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore, go into Recovery Mode per the instructions here.

  • HT1212 how do i get into my ipod when it says ipod diasabled try again in 23,000,000 minutes

    how do i get into my ipod when it says disabled try again in 23,000,000 minutes

    Read the article that you linked

  • I made a video series on one time line and now want to copy paste sections into other tiemlines so I can separate the series into distinct videos to upload. How do I get new timelines? When I go to new event it asks for import footage.

    I made a video series on one time line and now want to copy paste sections into other tiemlines so I can separate the series into distinct videos to upload. How do I get new timelines? When I go to new event it asks for import footage.

    You seem to be new to this software, so I highly recommend that you take some time to learn it using some great tutorials available online - it will pay off to invest the time, if you follow through, for example the great (and free) introductory tutorial at izzyvideo.com.
    This is an amazing piece of software, and you'll have a lot to learn, but it's well worth it.

  • How do I get accents on letters when writing in French?

    How do I get accents on letters when writing in French?

    Option + e, followed by e, gives é
    Option + u, followed by u, gives ü,
    etc.
    To find them all, go to Apple Menu / System Preferences / Language and Text, then click on Input Sources.
    There select Kyeboard and Character Viewer, and check the box for Show Input menu in menu bar. Then in the menu bar click the square icon.
    You will see this:
    Select Show Character Viewer, and something like this comes up (this is my Canadian English keyboard):
    This "keyboard" shows what symbols, diacritics etc, are produced when you click a key.

  • How can I get my iPhone ID when i dont have box, and it is not in "my products"

    How can I get my iPhone ID when i dont have box, and it is not in "my products"? Please help. I lost my phone.

    Here are the various ways:
    http://support.apple.com/kb/ht4061
    If you setup a support profile with Apple, you can also login to your support profile & find the SN listed there.

  • How do i get mail notifications -sounds when using hotmail

    Hey everyone,  I know theres a way to do it but haven't figured it out yet.  How do I get a sound notification when I get new mail - currently using hotmail on my ipad.   Thanks

    This is a general setting for all mail.
    Settings > Notifications > Mail
    Configure it the way you want..........

  • HT5449 How do I get dictation I know when I want the word period and not a full stop.

    How do I get dictation I know when I want the word period and not a full stop.

    Try the alternatives: "point," "dot," and/or "full stop." Do any of these options produce a period for you? And, as a different punctuation test, does something such as "comma" work for you?

  • Edit in Progress how do I get out or know when it is finished??

    I have just read a plea from some-one which sounds exactly like my problem.  I could never get on with Photoshop Elements 8 so I thought that when version 11 came out it would be simpler...not to me I still have problems with the edit in progress...how do I know when it is finished and how do I get out of screens when I have finished???I have bought the book...got the latest version...have old CD's from my last attempts...but I am still battling with it.
    Picasa on the other hand is great  obviously not as comprehensive...maybe I should have just stuck to that instead of spending money I could ill afford.
    Pensioner...but no that is not the reason   (Ihope)

    When you finish in the Editor, save your work; then click Ctrl+W or use the top menu:
    File >> Close

Maybe you are looking for