-
27 Feb 2013 2:35 AM #1
DatePicker not displays correctly when you try to change month and year together
DatePicker not displays correctly when you try to change month and year together
Hello.
In the DatePicker that is used in DateFields there is a button in top to change month and year together.
This button must display a panel with months and years, but it only works in Internet Explorer (not works in Firefox nor Chrome).
I use Ext JS 3.4.
¿Someone can resolve this bug?
Thanks,
Martín
-
27 Feb 2013 7:45 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 434
This code:
works for me when changing the month and year using 3.4.0 and Chrome 26Code:new Ext.form.FormPanel({ renderTo : document.body, width : 400, title : 'Test', items : [ { xtype : 'datefield', fieldLabel : 'Date' } ] });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
1 Mar 2013 1:42 AM #3
This is the code (there are very much code, but I obviously can't put here).
In Firefox if you clic in the top button to change month and year the panel goes down and goes up rapidly. In Chrome the panel doesn't appear. In Internet Explorer the panel appears correctly, although the bottom buttons don't display well because the panel must have more height because I changed the font size because the default font size is too small. I used this CSS code to change the font size. Maybe it causes too the problems in Firefox and Chrome.Code:var tfechainicio = new Ext.form.DateField({ fieldLabel: 'Fecha de inicio', name: 'fechainicio', width: 120, enableKeyEvents: true, readOnly: ((!tengoRol('ADMKT') && !tengoRol('AGENCIA')) || (tengoRolStrict('AGENCIA') && !puedoEditar()) || noEditable) ? true : false, helpText: 'La fecha de inicio es obligatoria si el medio es acto/feria', format: 'd/m/Y', altFormats: 'd/m/y|d/n/Y|d/n/y|j/m/Y|j/m/y|j/n/Y|j/n/y' //|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d' , disabled: !(tengoRol('ADMKT')), listeners: { keyup: function () { validaForm(); fechainicioAg.setValue(tfechainicio.getValue()); }, select: function () { validaForm(); fechainicioAg.setValue(tfechainicio.getValue()); } } });
How can I solve this problems?Code:div, span, p, body, a, input, button, label, textarea, b { font-size: 12px !important; }
Thanks,
Martín
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote