1. #1
    Sencha Premium Member MichaelOstrovsky's Avatar
    Join Date
    May 2008
    Location
    Tel Aviv, Israel
    Posts
    135
    Vote Rating
    6
    MichaelOstrovsky is on a distinguished road

      0  

    Default Customize modal window mask

    Customize modal window mask


    Automatically add the ui of the (modal) window to the mask element.
    Tested on Ext 4.1.1

    Code:
    // allow customizing window's modal mask
    Ext.define('patches.ExtZIndexManager',{
        override:'Ext.ZIndexManager',
    
    
        _showModalMask:function(comp){
    
    
            this.callParent(arguments);
    
    
            // mask is a reusable element, so each time it needs to accept only the relevant style
            this.mask.removeCls(this.customMaskCls);
            this.customMaskCls = 'modal-mask-'+comp.ui;
            this.mask.addCls(this.customMaskCls);
    
    
        }
    
    
    });

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,999
    Vote Rating
    456
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Thanks for sharing.

    Scott.

  3. #3
    Sencha User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Brazil, Goias, Goiânia
    Posts
    441
    Vote Rating
    7
    wemerson.januario will become famous soon enough

      0  

    Default


    Thanks for sharing!
    Wemerson Januario
    Twitter:
    @wemersonjanuar
    Skype:
    wemerson.januario
    Email: wemerson.januario@gmail.com
    Fone:
    62 9106-6689
    From: Goiânia, Brazil
    Desenvolvedor ExtJS/ ExtJS Developer