-
17 Mar 2009 11:47 AM #1
[2.2] DatePicker/DateField scrolls to the top after select in FF2
[2.2] DatePicker/DateField scrolls to the top after select in FF2
I have a popup window that contains a datepicker:
This window pops up and aligns to the element that was clicked on. The element is located on the bottom of the page and you have to scroll down to click on it.Code:this.datePicker = new Ext.DatePicker({ format: 'm/d/Y', listeners: { 'select': function(selDate) { this.textField.value = selDate.getValue().dateFormat(selDate.format); if (typeof this.textField.onchange == "function") { this.textField.onchange(); } this.dateChooserWindow.hide(); }, scope: this }, allowBlank: true });
So, I scroll down to it, clicked on it, window pops up with the date picker, I clicked on a date, window hides.
Then, the page is automatically scrolled to the top.
I also tried this in the Advanced VType Example. I set the height of the header to 1000px in firebug. Then, I scrolled to the bottom, clicked on the datefield, clicked on a date. It looks like the page scrolls to the top, the scroll to a point where the date field is on the bottom of the screen.
This happens in FF2 and FF3 but not in IE7.
-
17 Mar 2009 12:03 PM #2
Hmmm, I've tried it in FF-3.0.7@Linux and Advanced VType Example, changed 2nd paragraph to height=1000px, scrolled down and played with dates and it works like expected - no unwanted scrolling.
Any detailed steps how to reproduce it?Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
17 Mar 2009 12:35 PM #3
Sorry, the example does work for FF3. But, it doesn't work for FF2 for sure.
My code doesn't not work for FF3 and FF2.
-
17 Mar 2009 12:38 PM #4
You can try to upgrade Ext to have it working with FF3. If it's still in FF2 I can move this thread to Bugs.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
17 Mar 2009 12:51 PM #5
Please move this thread to Bugs. Thank you!
-
17 Mar 2009 5:58 PM #6
i suspect this is a duplicate of this report:
http://extjs.com/forum/showthread.php?t=61637
@joyce, could you verify if this is the case?
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
18 Mar 2009 8:28 AM #7
I used the Advanced Vtype example. It has 4 fields:
datefield
datefield
textfield
textfield
-Selected a date using the first datefield. I hit tab and it went to the next datefield.
-Selected a date using the second datefield. I hit tab and it went to the first datefield. Hitting tab again brings me to second datefield and subsequent tabs traverse through the rest of the fields correctly.
-
2 Apr 2009 6:42 PM #8
I am Joyce's co-worker. What other information do you need from us in order to recreate and resolve this bug? We are a Gold support customer and would like to know what the ETA is on getting this issue fixed.
Thank you
-
2 Apr 2009 6:43 PM #9
I've replied to Joyce via email, however since your issue is occurring in FF3 as well, it would be best if you could show us a test case, since the behaviour isn't visible in the vtypes example in FF3 (I can see it in FF2).
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!


Reply With Quote