PDA

View Full Version : [CLOSED] 3.1.1 - Datefield Side Validation Doesn't Show Up



carl23934
24 Mar 2010, 12:55 PM
Default CSS:
/ext-3.1.1/resources/css/ext-all.css

Default JS:
/ext-3.1.1/adapter/ext/ext-base.js
/ext-3.1.1/ext-all.js

OS: Windows XP

Browsers Affected:
Firefox 3.6.2 (probably all versions)
Chrone 4.1.249 (probably all versions)

Browsers NOT affected:
Internet Explorer 7


When you have the msgTarget:'side' for a datefield, the validation message is not visible.

This is because the field wrap element is not large enough to show it. See the screenshots as an example.

I am using an absolutely positioned datefield, I am not sure if this error affects all layout styles.

This was briefly looked at in 2008 (http://www.extjs.com/forum/showthread.php?t=25041), but was never actually corrected.

EDIT I didn't realize the image uploader resized images so they are unreadable-That's nice- The screenshots show that if I change the triggerfield wrap element to 130px width, the validation icon shows up.

Here I've highlighted the DIV and you can see that the element is there.
The triggerfield wrapper is hiding the validation icon because the width is only 96px;
http://www.2xod.com/extjs/datefield%20validation%20bad.PNG


If I change the fieldwrap to 130px, manually, the icon appears.

http://2xod.com/extjs/datefield%20validation%20good.PNG

Jamie Avins
24 Mar 2010, 1:02 PM
Please try to follow the forum guidelines when posting to the bug forums: http://www.extjs.com/forum/showthread.php?t=71015

3.2 is addressing these issues, please be sure to include a test case for this.

carl23934
24 Mar 2010, 1:50 PM
I'm sorry I created an example and the bug went away. I recently upgraded from 2 to 3 on this app and 3 seems to have solved this problem.

I did however find a problem with the text field side validation that I will be posting a detailed bug report for.

Please close this thread.