1. #1
    Sencha - Support Team keckeroo's Avatar
    Join Date
    Mar 2008
    Location
    Winnipeg, Canada
    Posts
    289
    Vote Rating
    6
    keckeroo is on a distinguished road

      0  

    Default Window in Desktop Example always on top ...

    Window in Desktop Example always on top ...


    Howdy,

    I'm playing around with the Desktop example and have come across a little problem (bug?) when creating windows outside the desktop.createwindow method. It appears in another forum thread an example was given (http://extjs.com/forum/showthread.php?t=32356) which says that things work but ....

    I have used the code (with slight mod) below, confirmed that indeed all windows are using the same window manager instance (by iterating through all the windows in the manager and identifying the windows) and no matter how hard i try - i cannot get the window created by new Ext.window to behave with normal window behaviour - that is - when it loses focus to another window it should go behind the focused window.

    From: sample.js in the Desktop example directory ...
    Code:
    snip..
    
    hand = desktop.getManager();
    
    snip...
    
                            tbar:[{
                                text:'Add Something',   
                                tooltip:'Add a new row',
                                iconCls:'add',
                             handler : function(){
                                    if (!Ext.getCmp('myWin')){
                                            var newWin = new Ext.Window({
                                                                    id: 'myWin',
                                                                    title:'hello,my friend',
                                            manager: hand,
                                                                    width:640, 
                                                                    height:480,
                                                                    html : '<p>Something useful would be in here.</p>',
                                                                    iconCls: 'bogus',
                                                                    shim:false,
                                                                    animCollapse:false, 
                                                                    constrainHeader:true
                                               
                                            });
                                    }
                                    newWin.show();
                                }
    
    snip...
    Any ideas ? is this is quite a mystery..

    thanks

    Kev

  2. #2
    Sencha - Support Team keckeroo's Avatar
    Join Date
    Mar 2008
    Location
    Winnipeg, Canada
    Posts
    289
    Vote Rating
    6
    keckeroo is on a distinguished road

      0  

    Default [SOLVED] Desktop example and window arrangement problem

    [SOLVED] Desktop example and window arrangement problem


    Why is it that whenever you post a question you invariably (after countless hours of debugging) find the answer yourself ?

    To enable the use of your own Ext.Window created components within the Desktop application you have to not only ensure you use the same windows manager (that is quite obvious) but you have to ensure that you RENDER your window to the same element!!!

    For whatever reason it appears that z-indexes are per element :-S

    sorry for the question - but i hope someone else can benefit from this discovery ;-)

    Cheers,

    Kevin

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar