Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Touch Premium Member
    Join Date
    Mar 2009
    Location
    Geseke / Germany
    Posts
    21
    Vote Rating
    0
    kkolle is on a distinguished road

      0  

    Default Window position is displaced after moving the window in it's container....

    Window position is displaced after moving the window in it's container....


    REQUIRED INFORMATION Ext version tested:
    • Ext 4.1b2
    Browser versions tested against:
    • FF10
    • Safari 5.1.3
    • Chrome 16.x
    Description:
    • Can't move a window with constrainHeader=true to the top position of the windows container
    Steps to reproduce the problem:
    • Use code below.....
    • Try to move the window to the topmost position of it's container. After releasing the mouse button, the windows top position is displaced.
    • Using 4.0.7 everything is ok.....
    Test Case:
    Code:
         Ext.application({
    
        launch:function () {
    
            var topPanel = Ext.create('Ext.panel.Panel', {
                height:20,
                region: 'north',
                html: 'TopPanel'
            });
    
            var bottomPanel = Ext.create('Ext.panel.Panel', {
                height:20,
                region: 'south',
                html:'BottomPanel'
            });
    
            var centerPanel = Ext.create('Ext.panel.Panel', {
                layout:'fit',
                region:'center'
            });
    
            Ext.create('Ext.container.Viewport', {
                renderTo:Ext.getBody(),
                layout:'border',
                items:[
                    topPanel,
                    centerPanel,
                    bottomPanel
                ]
            })
    
            var myWindow = Ext.create('Ext.window.Window', {
                title:'Testwindow',
                height:300,
                width:400,
                constrainHeader:true,
                renderTo:centerPanel.getEl()
            });
    
            centerPanel.add(myWindow);
    
            myWindow.show();
        }
    });
    HELPFUL INFORMATION
    Operating System:
    • OSX 10.7.3

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,987
    Vote Rating
    649
    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


    Get rid of the renderTo, should work correctly.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Touch Premium Member
    Join Date
    Mar 2009
    Location
    Geseke / Germany
    Posts
    21
    Vote Rating
    0
    kkolle is on a distinguished road

      0  

    Default


    That's right, but I want the effect, that the window keeps behind the bottom panel, when I move the window down.

    The picture shows the result with 4.0.7....everything is fine, and the user can switch to another window, because the taskbar is free.......

    With 4.1.0 the windows behind are overlapping the taskbar....

    infocenter.jpg

Thread Participants: 1