Hybrid View
-
11 Feb 2013 6:45 AM #1
Unanswered: modal panel not centered when draggable
Unanswered: modal panel not centered when draggable
Hi,
when I use the following code from the examples for floating components
and only add the lineCode:Ext.application({ name: "Modal-Test", icon: 'icon.png', launch: function () { Ext.Viewport.add({ xtype: 'panel', html: 'This is a centered and modal panel', modal: true, //hideOnMaskTap: true, centered: true, draggable: true }); } });
the floating panel isn't centered anymore and you can't drag it to the top of the screen.Code:draggable: true
I've searched the forums but didn't find a solution and my last thread on this topic wasn't answered. So, can please anybody help me with this!?
Thanks!
-
12 Feb 2013 2:19 AM #2
Anyone!? What am I doing wrong? Can anybody proof that these few lines of code aren't working correct? Or does anybody have a working example for a draggable modal panel for me? Support!?
-
12 Feb 2013 8:55 PM #3
-
13 Feb 2013 7:30 AM #4
Hi Kurt, thanks for your reply but this is not my problem.
As I tried to explain before: The problem is the line "draggable: true".
If I leave it away, my modal panel is centered. If I add it, it isn't! It is positioned at the left and can't be dragged to the top.
And again, these lines of code are my only application! Just take a blank project, insert this code and you should see what I mean. And if not I'm doing something wrong which I'm not aware of but could then correct it. So, please, could anyone proof this for me - support!?
Thx in advance!


Reply With Quote