I currently have a case where when I show the validation icon for a date item, the textfield becomes smaller. I assume this is because the textfield, picker-icon, as well as the validation icon are sharing one column width. Is there any way around this? It is shrunk to a point that the data in the field is not fully visible because the field is too small.
Announcement
Collapse
No announcement yet.
X
-
Still, there is an issue when validation error is displayed in DateItem:
Code:isc.DynamicForm.create({ ID: "dateForm", numCols: 2, width: 600, fields: [ {name:"directInputDate", title:"Direct Input Date", type:"date", useTextField:true, required: true}, {name: "validateBtn", title: "Validate", type: "button", click: "form.validate()"} ] });
Although the total field size remains the same, you can see that the text field shrinks, leaving a gap between text field and the calendar icon.
Is there a way to get rid of the gap? What's causing it?
Version: SC_SNAPSHOT-2011-08-16/PowerEdition Development Only (2011-08-16)
Comment
-
This shouldn't be happening - the framework code is attempting to maintain a consistent size for the formItem as a whole but inadvertently shrinking the text-box twice as much as it needs to.
We've applied a fix to both the 8.1x and 8.x branches so this'll be fixed in nightly builds in the future. If you need an immediate workaround you can set "expandHintAndErrors" to true on your dateItem.
(Note that "expandHintAndErrors" is not a publicly documented property - and as such support isn't guaranteed in future releases - but it will work as a workaround for this issue against 8.1)
Comment
Comment