Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7185 in a recent build.
  1. #1
    Sencha User
    Join Date
    Mar 2010
    Location
    Ukraine
    Posts
    47
    Vote Rating
    3
    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
    Gainesville, FL
    Posts
    37,004
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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
    ________________
    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 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,502
    Vote Rating
    48
    Animal has a spectacular aura about Animal has a spectacular aura about

      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
    47
    Vote Rating
    3
    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
    16,901
    Vote Rating
    623
    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


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

Thread Participants: 3

Tags for this Thread