Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJSIV-7185 in 4.1.3 Sprint 1.
  1. #1
    Sencha User
    Join Date
    Mar 2010
    Location
    Ukraine
    Posts
    38
    Vote Rating
    0
    sebbio is on a distinguished road

      0  

    Default [Ext 4.1.1] Window maximized fail

    [Ext 4.1.1] Window maximized fail


    PHP Code:
          Ext.onReady(function(){
            
    Ext.create('Ext.container.Viewport', {
              
    layout'border',
              
    disabledfalse,
              
    items: [
                
    Ext.create('Ext.panel.Panel', {
                  
    height42,
                  
    margins0,
                  
    region'north',
                  
    baseCls'x-plain'
                
    }),
                
    Ext.create('Ext.panel.Panel', {
                  
    margins0,
                  
    region'center',
                  
    id'mainPanel',
                  
    layout: {
                    
    type'hbox',
                    
    align'stretch'
                  
    },
                  
    items:[
                    
    Ext.create('Ext.panel.Panel', {
                      
    width300,
                      
    margins0,
                      
    borderfalse,
                      
    autoScrolltrue,
                      
    bodyStyle'background:#eee;',
                      
    items:[{
                        
    xtype'treepanel',
                        
    flex1,
                        
    collapsibletrue,
                        
    titleCollapsetrue,
                        
    margin10,
                        
    frametrue,
                        
    rootVisiblefalse,
                        
    linesfalse,
                        
    listeners: {
                          
    itemclick: function(view,rec,item,index,e,opt){
                            
    rec.raw.handler(rec.id);
                          },
                          
    itemdblclick: function(){
                            return 
    false;
                          }
                        },
                        
    title'Menu title',
                        
    store:  Ext.create('Ext.data.TreeStore', {
                          
    root: {
                            
    expandedtrue,
                            
    children: [{
                              
    text'Open maximized window',
                              
    leaftrue,
                              
    handler: function(id){
                                
    Ext.create('Ext.window.Window', {
                                  
    autoShowtrue,
                                  
    width600,
                                  
    height400,
                                  
    constrainHeadertrue,
                                  
    renderToExt.get('mainPanel'),
                                  
    maximizabletrue,
                                  
    maximized:true,
                                  
    html'Why can drag this window?',
                                  
    minimizablefalse
                                
    });
                              }
                            }]
                          }
                        })
                      }]
                    }),
                    
    Ext.create('Ext.panel.Panel', {
                      
    margins0,
                    })
                  ]
                })
              ]
            });
          }); 
    Tested:
    windows 7 x64 sp1
    chrome 21

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,599
    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


    Are you meaning to only constrain it to the center region and not the entire browser window?
    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.

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,458
    Vote Rating
    20
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      0  

    Default


    use an xtype: 'window' as a child item of the mainPanel.

    Then you can access it using CQ whenever you need.

    Don't forget closeAction: 'hide'

  4. #4
    Sencha User
    Join Date
    Mar 2010
    Location
    Ukraine
    Posts
    38
    Vote Rating
    0
    sebbio is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    Are you meaning to only constrain it to the center region and not the entire browser window?
    yes

  5. #5
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    15,068
    Vote Rating
    97
    evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold

      0  

    Default


    Agreed, you shouldn't be able to drag that window.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Tags for this Thread