我想在一个页面中点击添加按钮,让弹出的添加页面在我指定的位置显示。但是很纠结。

解决方案 »

  1.   

    可以用下面的来试试:
    win.show();
    win.getEl().alignTo(Ext.get('ux-taskbar'), "br-tr?").slideIn('b', { easing: 'easeOut' });
    br-tr // 看看这个参数
      

  2.   


    setPosition( Number left, Number top ) : Ext.BoxComponent
    Sets the left and top of the component. To set the page XY position instead, use setPagePosition. This method fires ...
    Sets the left and top of the component. To set the page XY position instead, use setPagePosition. This method fires the move event.
    Parameters:    * left : Number
          The new left
        * top : Number
          The new topReturns:    * Ext.BoxComponent
          this