Results 1 to 3 of 3

Thread: [4.2] No top border in grid header (grid with toolbar and witout border)

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8861 in 4.2.0.663.
  1. #1
    Sencha User
    Join Date
    Aug 2009
    Posts
    42

    Default [4.2] No top border in grid header (grid with toolbar and witout border)

    No top border in grid header (grid with toolbar and witout border)

    screen shots:

    bad border:

    no-border.PNG

    fixed border:

    fixed-border.PNG

    test case:

    HTML Code:
    <body>
    
    <div id="qaz"></div>
    
    <script>
      Ext.onReady(function() {
        var store = Ext.create('Ext.data.Store', {
          fields: ['name'],
          data: [
            {id: 1, name: 'n1'}
          ]
        });
    
        var grid1 = Ext.create('Ext.grid.Panel', {
          border: false,
          store: store,
          columns: [
            {dataIndex: 'name' }
          ],
          tbar: [
            {text: 'b1'}
          ]
        });
    
        var pan1 = Ext.create('Ext.Panel', {
          title: 'No header top border',
          layout: 'fit',
          items: [
            grid1
          ]
        });
    
        var grid2_fixed = Ext.create('Ext.grid.Panel', {
          border: false,
          store: store,
          columns: [
            {dataIndex: 'name' }
          ],
          tbar: [
            {text: 'b1'}
          ],
          listeners: {
            afterrender: function() {
              //very simple dummed fix...
              this.headerCt.el.dom.style.borderWidth = "1px";
            }
          }
        });
    
        var pan2 = Ext.create('Ext.Panel', {
          title: 'FIXED header top border',
          layout: 'fit',
          items: [
            grid2_fixed
          ]
        });
    
        Ext.create('Ext.tab.Panel', {
          title: 'container',
          margin: 20,
          renderTo: 'qaz',
          items: [
            pan1,
            pan2
          ]
        })
    
    
      });
    </script>
    </body>

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3

    Default same problem

    any solution?
    check 5.1 but not solve this issue.

Posting Permissions

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