Results 1 to 2 of 2

Thread: [4.1.1 rc2] Accordion + GridPanel layout issue: undesired scrollbar appears

Hybrid View

Previous Post Previous Post   Next Post Next Post
    You found a bug! We've classified it as EXTJS-6680 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    1,016
    Vote Rating
    125
      1  

    Default [4.1.1 rc2] Accordion + GridPanel layout issue: undesired scrollbar appears

    REQUIRED INFORMATION

    Ext version tested:

    • Ext 4.1.1

    Browser versions tested against:
    • Chrome 19
    • FF 13
    • IE9

    Description:
    • An undesired horizontal GridPanel scrollbar appears when that GridPanel is defined within the item of Accordion. Please run the sample or just look at the screenshot. Without the According the GridPanel is rendered without the scrollbar.

    Steps to reproduce the problem:
    • Just run the sample

    The result that was expected:
    • No scrollbars for the GridPanel

    The result that occurs instead:
    • A horizontal scrollbar appears.

    Test Case:

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Accordion GridPanel Bug</title>
    
        <link type="text/css" rel="stylesheet" href="../resources/css/ext-all.css" />
        
        <script type="text/javascript" src="../ext-all.js"></script>
    
        <script type="text/javascript">
            Ext.onReady(function () {
                Ext.create("Ext.panel.Panel", {
                    renderTo: Ext.getBody(),
                    height: 400,                
                    width: 400,
                    layout: "accordion", // if comment that out, the scrollbar disappears.
                    items: [{
                        title: "Accordion 1",
                        collapsed: true
                    }, {
                        title: "Accordion  2",
                        collapsed: false,
                        items: [{
                            xtype: "grid",
                            height: 300,
                            width: 300,
                            columns: {
                                items: [{
                                    flex: 1,
                                    text: "Column 1"
                                }]
                            }
                        }]
                    }]                
                });
            });
        </script>
    </head>
    <body>
    
    </body>
    </html>


    HELPFUL INFORMATION


    Screenshot:


    1.JPG

  2. #2
    Sencha User mono blaine's Avatar
    Join Date
    Jul 2008
    Location
    Turkey
    Posts
    123
    Vote Rating
    8
      1  

    Default

    Temporary fix (with ugly side effects):

    Code:
    .x-accordion-body .x-grid-view.x-grid-view-default {
    	overflow-x: hidden !important;
    }

Posting Permissions

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