Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    3
    Vote Rating
    0
    tarokker is on a distinguished road

      0  

    Exclamation Picker scroll bug (only when two elements are present)

    Picker scroll bug (only when two elements are present)


    Sencha Touch version tested:
    • 1.1.0
    • only default ext-all.css
    Platform tested against:
    • iOS 4
    • Chrome, Safari on Mac
    Description:

    I had I bug when trying to scroll a picker column if only two elements are present.
    If I try to scroll on that column, I have this error on the console:

    sencha-touch-debug-w-comments.js:34910 Uncaught TypeError: Cannot read property 'viewIndex' of undefined

    Test Case:

    Code:
    {
    xtype: 'datepickerfield',
    name: 'tipo',
    label: 'Tipo',
    picker: { yearFrom: 2010 }
    }
    The result that was expected:
    • Regular scrolling. The picker goes back to first or second item if I scroll over the bounds.
    The result that occurs instead:
    • Javascript error. The picker goes on an unexistant row after I scroll over the bounds.
    Screenshot or Video: Debugging already done:
    • none
    Possible fix:
    • not provided

  2. #2
    Sencha User
    Join Date
    Jul 2011
    Posts
    3
    Vote Rating
    0
    tarokker is on a distinguished road

      0  

    Exclamation


    I confirm this bug occurs for any picker type, when it has only 2 elements in list

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2009
    Posts
    114
    Vote Rating
    0
    JacobGu is on a distinguished road

      0  

    Default


    Here's an override to fix:

    Code:
    Ext.override(Ext.Picker.Slot, {
    	
     	onScrollEnd: function(scroller, offset) {
            var selectedNode = this.getNode(Math.round(offset.y / this.barHeight));
            if(selectedNode){
            	this.selectedNode = selectedNode;
            	this.selectedIndex = this.indexOf(this.selectedNode);
            	this.fireEvent('slotpick', this, this.getValue(), this.selectedNode);
            }
        }
    });

Thread Participants: 1

Tags for this Thread