I need to place several DatePicker widgets into the row. If there is not enough width to place all of them the rest widgets shift to the next row. It is the default HTML layout behavior. So I am trying to use FlowPanel. With any other widgets (Buttons, Labels, …) everything ok, but DatePickers are placed one widget to the row. Here’s the code
FlowPanel panel = new FlowPanel();
DatePicker picker1 = new DatePicker();
DatePicker picker2 = new DatePicker();
panel.add(picker1);
panel.add(picker2);
RootPanel.get().add(panel);
Any suggestions to solve this problem?
Thanks.
DatePicker‘s root element is atableso you’d have to give it adisplay: inline-tablestyle, or put it in an element withdisplay: inline-blockstyle.The following shouldn’t break any other use of
DatePicker, but won’t work in IE 6 or 7; it’s the Simplest Thing That Could Possibly Work™:If you really need IE 6/7 support, you could try the following, in a CssResource: