If you play with it some more, you'll find that the date picker appears relative to the edit box, which means below the edit box if there's room, otherwise above it. If you'd like to impose different positioning rules, the logical thing to do would be to override showDatePicker(), but it's complicated by the fact that the PopupPanel variable is private.
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/datepicker/client/DateBox.html#showDatePicker() http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/user/datepicker/client/DateBox.java /** * Parses the current date box's value and shows that date. */ public void showDatePicker() { Date current = parseDate(false); if (current == null) { current = new Date(); } picker.setCurrentMonth(current); popup.showRelativeTo(this); } On Dec 3, 9:26 pm, Stephen <[email protected]> wrote: > Hi, > > How do you position the datepicker popup for a DateBox ? Right now I > am just doing a > > DateBox myDB = new DateBox(); > > and the datepicker appears below the textbox when you click on it. I > see that on the gwt showcase example their's is popping up ABOVE the > text box as seen > here:http://gwt.google.com/samples/Showcase/Showcase.html#CwDatePicker > > I would like it to pop out to the right, how is this accomplished. I > have googled every query I can think of and can't find anything on > this.... > > .... dare I Bing ? > > - Stephen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
