Results 1 to 4 of 4

Thread: Dragged Panel in Internet Explorer

  1. #1

    Default Dragged Panel in Internet Explorer

    Hey guys,

    Does anyone of you maybe know, how you can scale a dragged panel. It

  2. #2

    Default

    could you show your code?

  3. #3

    Default

    I think the code, that matters is where I define the dragsource:


    Code:
    items[i] = new Ext.Panel({
    					id : 'item' + id,
    					title : icon + ' ' + title,
    					html : thumbnail,
    					listeners : {
    						render : function(g) {
    
    							var dragElement = new Ext.dd.DragSource(g.getEl(),
    									{
    										copy : false,
    										isTarget : false,
    										ddGroup : 'test',
    										getDragData : function(e) {
    											var target = Ext.get(e.getTarget());
    
    											return {
    
    												element : g,
    												item : target
    											};
    										}
    
    									});
    						}
    					}
    
    				});
    It

  4. #4

    Default

    I managed the width problem in Internet Explorer. I just had to overwrite the startDrag() methode and to set the width from the original element:

    Code:
     startDrag: function(x, y) 
                                              {
                                                var dragEl = Ext.get(this.getDragEl());
                                                var el     = Ext.get(this.getEl    ());
                                         
                                                dragEl.applyStyles({border:'',
                                                					'z-index':2000,
                                                					 width: el.getWidth()
                                                				});
                                                
                                                dragEl.update  (el.dom.innerHTML);
                                                dragEl.addClass(el.dom.className + ' dd-proxy');
                                              },

    Unfortunately I still got no (cross) icon when I

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •