1. #1
    Ext JS Premium Member
    Join Date
    Apr 2010
    Posts
    51
    Vote Rating
    0
    blex2010 is on a distinguished road

      0  

    Default Understanding scrollbars

    Understanding scrollbars


    I have looked through the forum for an answer to this and have seen similar posts but not the answer...

    I keep having panels where at some point the content is larger than the area so the vertical scroll bar appears. This is fine. However, when the vertical scrollbar appears it decreases the view area by some amount of pixels and the result is the horizontal scroll bar appears. This is not fine.

    Can someone tell me what I'm doing wrong? More importantly, how can I avoid this?

    Thanks!

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    97
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Ext can't automatically detect if a vertical scrollbar will appear, so the only solution is to reserve room for the vertical scrollbar (e.g. by using a scrollOffset or a negative anchor in a layout).

  3. #3
    Ext JS Premium Member
    Join Date
    Apr 2010
    Posts
    51
    Vote Rating
    0
    blex2010 is on a distinguished road

      0  

    Default


    Is there an example of this? I'm just not sure what value to set.

    So if I have p = new Panel({autoScroll:true) and l add HTML to it's body. What value should I set so the horizontal scroll won't show as the content begins to scroll vertically?

  4. #4
    Sencha User
    Join Date
    Sep 2008
    Posts
    24
    Vote Rating
    0
    mado489 is on a distinguished road

      0  

    Default


    Quote Originally Posted by Condor View Post
    Ext can't automatically detect if a vertical scrollbar will appear, so the only solution is to reserve room for the vertical scrollbar (e.g. by using a scrollOffset or a negative anchor in a layout).
    Has anybody found some solution (or hack) to this problem? Please...

    Thanks!

Similar Threads

  1. understanding needed
    By wilderland in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 30 Apr 2009, 12:46 AM
  2. [HELP] Understanding createCallback
    By Phunky in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 5 Feb 2008, 3:48 AM
  3. understanding components
    By kash22 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 19 Nov 2007, 7:04 PM
  4. Understanding The License
    By RyanZec in forum Community Discussion
    Replies: 2
    Last Post: 19 Oct 2007, 11:24 AM
  5. Ahhh!!! Not understanding 2.0
    By Nam in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 3 Oct 2007, 3:18 AM

Thread Participants: 2