Hi,<br><br>I've migrated my project from 1.0 to 2.1 without programming it new from scratch, so the code still looks like v1.0 code. But nevertheless I've nearly accomplished it now but there is one problem left:<br>My floating panels aren't centered and I can't drag them to the top of the screen when I say draggable is true!? Obviously the drag-area isn't correct bescause I can drag them deeper than the bottom of the screen to the same amount as I'm not allowed to drag them to the top.<br><br>Here's the code for the panel:<br>
Code:
var floatingPanel1 = new Ext.Panel({<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; draggable: true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; modal: true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; centered: true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scrollable: 'vertical',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: Ext.is.Phone ? 260 : 400,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height: Ext.is.Phone ? 220 : 400,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items: [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;toolbarTop, toolbarBottom,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {xtype: 'component', cls: 'txtArea_Float', id: 'txtGoOn'}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]<br>&nbsp;&nbsp;&nbsp; });
<br><br>And here is how it is added to the screen:<br>
Code:
var panel_Main = new Ext.Panel({<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id: 'panelMain',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fullscreen: true,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layout: 'card',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; items: [card_Main, card_X, card_X, card_Z, floatingPanel1, floatingPanel2]<br>&nbsp;&nbsp;&nbsp; });
<br><br>Can anyone help please!?<br><br>Thx