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
    36,801
    Vote Rating
    834
    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,501
    Vote Rating
    47
    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,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


    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

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