Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User leeby's Avatar
    Join Date
    Sep 2008
    Posts
    44
    Vote Rating
    1
    leeby is on a distinguished road

      0  

    Default bug in panel ghost function

    bug in panel ghost function


    The bug is in ext-4.1RC.

    See below red font part, which cause exceptions. The ghostPanel is default as a container, so it doesn't have addTool, setTitle and setIconCls function, also it doesn't even have header element.

    // private - used for dragging
    ghost: function(cls) {
    var me = this,
    ghostPanel = me.ghostPanel,
    box = me.getBox(),
    header;


    if (!ghostPanel) {
    ghostPanel = new Ext.container.Container({
    renderTo: document.body,
    floating: {
    shadow: false
    },
    frame: (Ext.supports.CSS3BorderRadius && !me.isWindow) ? me.frame : false,
    overlapHeader: me.overlapHeader,
    headerPosition: me.headerPosition,
    baseCls: me.baseCls,
    cls: me.baseCls + '-ghost ' + (cls ||'')
    });
    me.ghostPanel = ghostPanel;
    }
    ghostPanel.floatParent = me.floatParent;
    if (me.floating) {
    ghostPanel.setZIndex(Ext.Number.from(me.el.getStyle('zIndex'), 0));
    } else {
    ghostPanel.toFront();
    }
    if (!(me.preventHeader || (me.header === false))) {
    header = ghostPanel.header;
    // restore options
    if (header) {
    header.suspendLayouts();
    Ext.Array.forEach(header.query('tool'), header.remove, header);
    header.resumeLayouts();
    }
    ghostPanel.addTool(me.ghostTools());
    ghostPanel.setTitle(me.title);
    ghostPanel.setIconCls(me.iconCls);
    }


    ghostPanel.el.show();
    ghostPanel.setPagePosition(box.x, box.y);
    ghostPanel.setSize(box.width, box.height);
    me.el.hide();
    return ghostPanel;
    },
    www.feyasoft.com
    Extjs 3.2 based Calendar Spreadsheet Presentation Word

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,834
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Not sure where you're getting that code from, however in RC1 the code reads:

    Code:
        ghost: function(cls) {
            var me = this,
                ghostPanel = me.ghostPanel,
                box = me.getBox(),
                header;
    
            if (!ghostPanel) {
                ghostPanel = new Ext.panel.Panel({
                    renderTo: document.body,
                    floating: {
                        shadow: false
                    },
                    frame: (Ext.supports.CSS3BorderRadius && !me.isWindow) ? me.frame : false,
                    overlapHeader: me.overlapHeader,
                    headerPosition: me.headerPosition,
                    baseCls: me.baseCls,
                    cls: me.baseCls + '-ghost ' + (cls ||'')
                });
                me.ghostPanel = ghostPanel;
            }
            // .....
        }
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi