gjvc
10-23-2008, 06:13 AM
Hi,
I have a ContentPanel in an accordion layout. The code below results in the DatePicker appearing on the left-hand of the ContentPanel. What should I do to get it centered?
Thanks very much!
gjvc
contentPanel = new ContentPanel();
contentPanel.setHeading("someHeading");
VerticalPanel verticalPanel = new VerticalPanel();
verticalPanel.setHorizontalAlign(Style.HorizontalAlignment.CENTER);
DatePicker datePicker = new DatePicker();
verticalPanel.add(datePicker);
contentPanel.add(verticalPanel);
west.add(contentPanel);
I have a ContentPanel in an accordion layout. The code below results in the DatePicker appearing on the left-hand of the ContentPanel. What should I do to get it centered?
Thanks very much!
gjvc
contentPanel = new ContentPanel();
contentPanel.setHeading("someHeading");
VerticalPanel verticalPanel = new VerticalPanel();
verticalPanel.setHorizontalAlign(Style.HorizontalAlignment.CENTER);
DatePicker datePicker = new DatePicker();
verticalPanel.add(datePicker);
contentPanel.add(verticalPanel);
west.add(contentPanel);