Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/421.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 拖拽面板extjs_Javascript_Extjs_Panel - Fatal编程技术网

Javascript 拖拽面板extjs

Javascript 拖拽面板extjs,javascript,extjs,panel,Javascript,Extjs,Panel,我使用的extjs drag工作正常,但drop不工作这里是我的代码 draggable : { insertProxy : false, moveOnDrag: true, onDrag : function(e) { var pel = this.proxy.getEl(); this.x = pel.getLeft(true); this.y = pel.getTop(true); var s = t

我使用的extjs drag工作正常,但drop不工作这里是我的代码

draggable : {
    insertProxy : false,
    moveOnDrag: true,
    onDrag : function(e) {
        var pel = this.proxy.getEl();
        this.x = pel.getLeft(true);
        this.y = pel.getTop(true);

        var s = this.panel.getEl().shadow;
        if (s) {
            s.realign(this.x, this.y, pel.getWidth(), pel
                            .getHeight());
        }
    },
    endDrag: function(e) {
        Ext.panel.DD.prototype.endDrag.apply(this, arguments);
        console.log('dragend');
    },
},

提示:我使用的是通用面板,这意味着同一个面板会多次生成内容:)

解释“不工作”。你有
dragend
日志吗?你们定义了放置区域吗?是的,我在控制台中得到了Draged,以及如何为通用面板添加放置区域,而无需通过itemId或idOK选择它。那么,到底是什么不起作用呢?它被向右拖动,但没有放下这里的例子是,我选择了两个面板,当我移动其中一个时,它会移动,但不会放下检查图片,现在传真显示,另一个隐藏在传真位置