1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    27
    Vote Rating
    1
    webxells is on a distinguished road

      0  

    Default Unanswered: ExtJS resizable Container/Panel don't change position, resize from left/top

    Unanswered: ExtJS resizable Container/Panel don't change position, resize from left/top


    If I have something like this:
    PHP Code:
    var container Ext.create('Ext.container.Container', {
        
    plain:true,
        
    width 300,
        
    height300,
        
    html'Super',
        
    cls:'container',
        
    renderTo:Ext.getBody(),
        
    draggable:true,
        
    closable:false,
        
    resizable:{
            
    pinned:true,
            
    dynamic:true
        
    }
    }).
    center(); 

    the container is "resizable", but will only resize on the right and bottom (south, east) side. If I resize the container on the left or top side, the container will not move, it stands on the same position. How to deal with that? If I take a window it change the position too.For example:


    PHP Code:
    var win Ext.create('Ext.window.Window', {
        
    plain:true,
        
    width 300,
        
    height300,
        
    html'Super',
        
    cls:'container',
        
    renderTo:Ext.getBody(),
        
    draggable:true,
        
    closable:false,
        
    resizable:{
            
    pinned:true,
            
    dynamic:true
        
    }
    }).
    center().show(); 

    Does the job. But I will use a container. How to do this?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,077
    Answers
    674
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You can can add floating: true to allow for this.

    Scott.

  3. #3
    Sencha User
    Join Date
    Feb 2010
    Posts
    27
    Vote Rating
    1
    webxells is on a distinguished road

      0  

    Default Thx

    Thx


    Indeed it's floating . I was searching for a long time, googling it, but no results.

Thread Participants: 1

Tags for this Thread