View Full Version : GXT validation icon stuck on the DateField

30 Jul 2010, 8:47 AM
I am using GXT 2.1.1 with GWT 1.7.

I have created a FormPanel with a DateField component and using auto validate. On the onModuleLoad() i am hiding the FormPanel and on the click of the button I am using the show() method to dispaly the FormPanel object.

The FormPanel is displayed with Validation icon stuck on the DateField.

I have found with the IE Developer toolbar that the <IMG class=gwt-image> is causing the issue.

I have added "margin-right=16px" in the IE developer toolbar and it moved the image on the right side properly.

This is happening only if you hide the FormPanel object with a validation on DateField and on the click of a button call the FormPannel component show() method.

Is there a way to fix this validation icon stuck on the DateField. I do not find the CSS file where i can override the above CSS class gwt-image.


31 Jul 2010, 6:27 AM
You can change the HideMode of the FormPanel to HideMode.OFFSETS. This should resolve your problems

2 Aug 2010, 6:22 PM
Hi sven,

In my FormPanel constructor i have used setHideMode(Styles.HideMode.OFFSETS) but it did not resolved my problem.

I still see the validation icon stuck on the DateField.