Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member Fredric Berling's Avatar
    Join Date
    Sep 2007
    Location
    Sweden
    Posts
    186
    Vote Rating
    14
    Fredric Berling has a spectacular aura about Fredric Berling has a spectacular aura about

      0  

    Default [OPEN-694] scroll:true messes up Ext.util.Draggable in Ext.DataView

    [OPEN-694] scroll:true messes up Ext.util.Draggable in Ext.DataView


    Sencha Touch version tested:
    • 1.01
    • only default ext-all.css

    Platform tested against:
    • iOS 4 on Ipad
    • Safari on Mac (Latest version)

    Description:
    • When a Dataview is set to "scroll:true" the drag constraint is limited to the dataview itself. (can not be dragged to other components outside the layout)

    Test Case:

    Code:
       Ext.regModel('User', {
        fields: [
            {name: 'name', type: 'string'}
        ]
    });
    
    
    Ext.regApplication({
        name: "Test",
      	launch: function(){
    		droplist = new Ext.DataView({
    			scroll:true,
    			flex:1,
      			store: new Ext.data.Store({
    				model:'User',
    				data:[
    					{name:'Fredric Berling'},
    					{name:'Bruce Springsteen'},
    					{name:'Michael Jackson'}
    				]
    			}),
                tpl : [
    				'<tpl for=".">',
                    '<div class="draggableDiv">{name}</div>',
    				'</tpl>'
                ],
    			itemSelector: 'div.draggableDiv'
            });
    		droplist.on('afterrender', function(){
    		
    			droplist.on({
    			    	itemtap: this.createDragElement,
    			    	scope:this
    			});
    		}, this);
    	
            this.viewport = new  Ext.Panel({
    			fullscreen:true,
                application: this,
    			layout: {
    			        type: 'hbox',
    			        align: 'stretch'
    			 },
    	   		items:[{xtype:'container', html:'drop here if you can', width:300 },droplist]
            });
            
            
        
        },createDragElement:function(dw, index, item, e){
    			var dragItem = new Ext.util.Draggable(item, {
    				revert:true,
    				constrain:null
    			});
    	}
    
    });



    Steps to reproduce the problem:
    • Try crappy example above.. Click list item once for creating draggable.
    • Now release mouse and try to drag the name item onto the left area.
    • This doesnt work in my environment
    • Now change scroll to false and reload page.
    • Drag again into left panel. It should work

    The result that was expected:
    • Dragging item into left panel

    The result that occurs instead:
    • Item can only be dragged inside its own container. (the dataview)

  2. #2
    Ext User
    Join Date
    Jan 2011
    Posts
    4
    Vote Rating
    0
    jmilly is on a distinguished road

      0  

    Default


    Does anyone have a fix for this?

  3. #3
    Sencha User
    Join Date
    Feb 2008
    Posts
    9
    Vote Rating
    0
    AloneWalker is on a distinguished road

      0  

    Default


    I searched how to this bug solve but i cant find any suitable soulition. Then today when i'm looking for solution, i changed to senhca main css file
    from x-scroller-parent{overflow:hidden !important;}
    to x-scroller-parent{}

    Now it working. But i think that it is not a good solution as well.

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    23
    Vote Rating
    0
    David55 is on a distinguished road

      0  

    Default


    Do you have answer about this problem because i have the same and i implement AloneWalker 's solution but it is not a very good solution i think (but it works)

Similar Threads

  1. [OPEN-458] DataView - Scroll horizontal with one finger
    By mitchellsimoens in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 22 Oct 2010, 10:52 AM
  2. [OPEN-1141] Ext.util.Format.number Bug
    By adam3342 in forum Ext 3.x: Bugs
    Replies: 3
    Last Post: 21 Jul 2010, 9:27 AM
  3. ext-all.css line 1 messes up non-ext stuff in application/site
    By zhegwood in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 6 Jan 2010, 7:17 PM
  4. [2.0rc1] Ext.Panel. draggable:true does not work.
    By Animal in forum Ext 2.x: Bugs
    Replies: 0
    Last Post: 21 Nov 2007, 6:28 AM

Thread Participants: 3

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar