Results 1 to 3 of 3

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

    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
    24
    Vote Rating
    1
      0  

    Default 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
    18,608
    Vote Rating
    874
      0  

    Default

    Get rid of the renderTo, should work correctly.
    Evan Trimboli
    Twitter - @evantrimboli

  3. #3
    Touch Premium Member
    Join Date
    Mar 2009
    Location
    Geseke / Germany
    Posts
    24
    Vote Rating
    1
      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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •