-
15 Aug 2012 3:50 AM #1
Unable to select last option of picker
Unable to select last option of picker
Sencha Touch version tested:
- Sencha Touch 2.0.1.1
- Sencha Touch 2.1.0-b2
Browser versions tested against:- Chrome 21.0.1180.79 (Windows)
Description:- If i user a selectfield with the config
usePicker: true
i am not able to select the last option in the picker. - If i don't use a picker
usePicker: false
the selectfield shows a list and evrything works fine.
Steps to reproduce the problem:- Open the console
cmd - go into SDK-Folder
cd C:\xampp\htdocs\sencha-touch-2.0.1.1
or
cd C:\xampp\htdocs\sencha-touch-2.1.0-b2 - generate a new app
sencha generate app -n TEST -p c:/xampp/htdocs/TEST - go to new generated folder
cd c:/xampp/htdocs/TEST - replace the generated code in Main.js with selectfield (see code below)
The result that was expected:- I should be able to select each option in the picker even the last one.
The result that occurs instead:- If i click into the selectfield, the picker is shown with its 5 options.
I can select any option i want but if i choose the last one, the picker jumps back to the penultimate item (4/5)
Test Case:
Code:Ext.define("TEST.view.Main", { extend: 'Ext.form.Panel', requires: [ 'Ext.TitleBar', 'Ext.field.Select' ], config: { items: [ { xtype: 'titlebar', title: 'Test', docked: 'top' }, { xtype: 'selectfield', label: 'Test', options: [ { text: '0ption 1', value: '1' }, { text: '0ption 2', value: '2' }, { text: '0ption 3', value: '3' }, { text: '0ption 4', value: '4' }, { text: '0ption 5', value: '5' } ], usePicker: true } ] } });
Debugging already done:- I only used the console from the Chrome Developer Tools (Ctrl + Shift + J) and there were no errors or warnings.
Possible fix:- The only way to make the last option(Option 5) selectable, seems to attach an empty (6.) option to the end of the options.
Additional CSS used:- only default app.css
Operating System:- Windows 7
Last edited by sch-z; 19 Aug 2012 at 11:39 PM. Reason: false template bug format
-
15 Aug 2012 11:24 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Seems odd, what device are you seeing this issue with?
-
16 Aug 2012 12:08 AM #3
I'm also having this problem with Sencha 2.0.1 on Google Chrome on my computer. I think it's a Chrome issue or an upgrade issue because :
- If I copy my app folder in 2.0.1 to another computer with Chrome, it seems to work properly
- Then, I upgrade to 2.1.0 B2, I got the bug
- I roll back to 2.0.1 with my backup folder, I still have the bug
-
16 Aug 2012 5:43 PM #4
I had this happen to me on Chrome (21.0.1180.79 m)...
But it didn't happen on Safari or on my ipad that I was testing on...
I also found that the display of the items, in my case year values on a date picker, were not displayed vertically centred in the div/row... as I scrolled through from 1900 to 2012, the gradually were displayed higher and higher up in the row until they were displaying where the value from the row above should have been...
-
21 Aug 2012 2:42 AM #5
I had a look at the inspector in Chrome and Safari for a simple picker with two options/items.
Actually, the expected behavior when I select the second and last item on Safari is:
But when using Chrome, scrolling to the last item and releasing the click, the above code reset to:Code:-webkit-transform: translate3d(0px, -45px, 0px);
Code:-webkit-transform: translate3d(0px, 0px, 0px);
-
5 Nov 2012 12:03 AM #6
I have the same problem. Has anyone found a solution/workaround yet?
-
30 Dec 2012 7:44 AM #7
I'm having the same problem on Android 2.3.3, Sencha 2.0.1.1
From the last item, jumps right back to the previous one.
-
1 Feb 2013 7:44 AM #8
any bug fix in sight?
any bug fix in sight?
Maybe I'm not looking in the right places, but is there a way to find out if this is on a list of bugs to be fixed in the next release?
Does someone have to open a support case using credits to put it on a priority list?
Again, please pardon my ignorance if there is some clear way to figure this out that I have missed.
-
1 Feb 2013 2:12 PM #9
example app that shows the issue
example app that shows the issue
From the kitchen sink examples:
Using a Chrome browser: http://dev.sencha.com/deploy/touch/e...nk/#demo/forms also shows the issue, but, on the very same chrome browser this link http://docs.sencha.com/touch/2-1/tou...tml#demo/forms works just fine.
Seems like maybe this is fixed in 2.1.1?? But existed in 2.0.1?
-
4 Feb 2013 7:57 AM #10
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote