1. #1
    Sencha User
    Join Date
    Jul 2010
    Location
    Russia, Yekaterinburg
    Posts
    5
    Vote Rating
    0
    isqad88 is on a distinguished road

      0  

    Default Fix a bug with the slipping lines in the grid with frozen columns

    Fix a bug with the slipping lines in the grid with frozen columns


    When you use the grid with frozen columns carry the words in the cells, you may show upwhen scrolling bug when part ofthe frozen columns of slippeddown relative to the normal grid.
    I found away to correct this phenomenon in version 4.0.7.

    PHP Code:
    /**
    * Css style
    */
    .hack-scroll table.x-grid-table 
      
    margin-bottom18px !important;
    }
    /**
    * word-wrap
    */
    .x-column-header-inner .x-column-header-text, .x-grid-cell-inner {    
      
    white-spacepre-wrap !important;

    PHP Code:
    //at grid with locked columns, and word-wrap at cell
    //...
    listeners: {         
      
    afterrender: function(cmp){                              
        
    cmp.normalGrid.on('scrollershow', function(scrollerorientation) {                         if (orientation == 'vertical')  { 
        
    cmp.lockedGrid.addCls('hack-scroll');                        
    }                    
    });                    
        
    cmp.normalGrid.on('scrollerhide', function(scrollerorientation) {                            if(orientation == 'vertical') { 
        
    cmp.lockedGrid.removeCls('hack-scroll');                     
    }                    
    });
    }
    }
    //... 

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,617
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Moved to Ext JS 4 forum.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.