I found when creating an application that I couldn’t resize a date field. The date picker mover to a second row and that wasn’t what I wanted.
And I didn’t want a large field because I was only storing a short date in ISO Date format.
I started to investigate why the helper icon was moved to the second row and found that a style width was inherited down in the date field control. This made that the text field storing the date was as big as the surrounding span and that made the helper icon to pop down to the second row.
I thought that I could fix the problem in the Dojo Widget but I couldn’t find any event to attach my code to that fired when the compilation of the widget was done. So my choice fell on implementing this as a Dojo onload event fix.
Place the code within a output script on a custom control or in a script library and add it to you XPage with the fields. It can handle one or multiple date fields. It will only manipulate fields with the width style added.
0 Comments.