Results 1 to 2 of 2

Thread: Row Editor shadow bug

    Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574

    Default Row Editor shadow bug

    Hallo,

    in row editor plugin you the see the shadow bug on the following screenshot:

    ShadowBug.jpg



    The shadow is crashed in case the width of grid is not set.
    In case the grid height is small the shadow, it the content is scrolled and the row editors is hidden by header container.

    Code:
    Ext.application({    name : 'Fiddle',
    
    
        launch : function() {
            var store = Ext.create('Ext.data.Store', {
                storeId:'simpsonsStore',
                fields:['name', 'email', 'phone'],
                data: []
            });
            
            for(var i=0; i<100; i++) {
                store.add({
                    "name":"Lisa",
                    "email":"[email protected]",
                    "phone":"555-111-1224",
                    age: i
                })
            }
            Ext.create('Ext.grid.Panel', {
                title: 'Simpsons',
                store: store,
                columns: [
                    {header: 'Name',  dataIndex: 'name', editor: 'textfield'},
                    {header: 'Email', dataIndex: 'email', flex:1,
                        editor: {
                            xtype: 'textfield',
                            allowBlank: false
                        }
                    },
                    {header: 'Phone', dataIndex: 'phone'},
                    {
                        header: 'Age',
                        dataIndex: 'age',
                        editor:{
                            allowBlank:false,
                            xtype:'numberfield',
                            minValue: 10
                        }
                    }
                ],
                selModel: 'rowmodel',
                plugins: {
                    ptype: 'rowediting',
                    clicksToEdit: 1
                },
                height: 200,
                // No Width make shadow bug.
                //width: 400,
                renderTo: Ext.getBody()
            });
        }
    });
    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,257

    Default

    I can reproduce this in 5.1.0 but not on the latest nightly, it appears this is already resolved.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

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