Results 1 to 4 of 4

Thread: reserveScrollbar: true doesn't work with vbox layout (works with anchor layout)

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default reserveScrollbar: true doesn't work with vbox layout (works with anchor layout)

    Ext version tested:
    • Ext 4.2.1



    Browser versions tested against:
    • ____
    • IE8
    • FF3 (firebug 1.3.0.10 installed)
    • Safari 4



    DOCTYPE tested against:
    • html



    Description:
    • reserveScrollbar: true doesn't work with vbox layout (works with anchor layout).



    Steps to reproduce the problem:
    • make a layout with 'vbox' layout
    • set overflowY: 'scroll' and reserveScrollbar: truebar


    See https://fiddle.sencha.com/#fiddle/235
    If you click among the tabs, tabs are resized according to whether the view is scrollable or not.
    If you change layout to 'anchor', tabs keep their sizes with no matter of any scrollbar. reserveScrollbar works as expected.

    The result that was expected:
    • reserveScrollbar should have effect



    The result that occurs instead:
    • reserveScrollbar has no effect

  2. #2
    Ext JS Premium Member
    Join Date
    Aug 2011
    Location
    Greenville, SC
    Posts
    181

    Default

    Unfortunantly, reserveScrollbar isn't a property of the vbox layout. The reason it works on anchor layouts is because the anchor layout extends the auto layout which has the reserveScrollbar property.

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks, bmacdon1!

    The inheritance can be seen in the right column of these pages.
    http://docs.sencha.com/extjs/4.2.1/#...container.VBox
    http://docs.sencha.com/extjs/4.2.1/#...ntainer.Anchor

  4. #4

    Default

    Thanks guys.

Posting Permissions

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