Quantcast
Channel: Dragging windows - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Dragging windows

$
0
0

I did some research on this and still can't find a good solution for it. I wrote my app in ExtJS 4.1 and when I run it on an iPod the dragging functionality is disabled by default (which is what I want), but if I write the same app in ExtJS 6.2 all windows can be draggable which causes issues of visibility of the app. With that being said, Does anyone know how to disable window dragging when using Tablets (iPod, iPad, etc.)? I'm using ExtJS 6.2

Here's my working code that works great for a single window, but I want a general solution that will stop ALL windows from being dragged.

       var win = Ext.create('Ext.Window', {            title: "My Window",            width: 500,            modal: true,            layout: 'fit',            items: form,            buttons: [{                text: 'Close',                handler: function() {                    win.hide();                }            }]        });        win.show();        if(Ext.os.deviceType === 'Tablet') {            win.dd.disable();        }

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images