I really like your new tool, but I'm having some problems using both the FormPanel and DocPanel in the designer mode.
My problem with the FormPanel is that I'm only able to add 1 form element widget (ex. a textBox) to the panel by dragging and dropping it in. After that, even if I resize the textBox to be much smaller than the formPanel box, I am unable to drag and drop any other form widgets into the formPanel. When I have my mouse hover over where I want to drop the next widget it shows a black circle with a line through it indicating I can't add anything more to the formPanel. I've double checked and it shows the formPanel as the currently active panel in the property editor list. I'm not sure what I should do or if this may be a bug.
I'm having a similar problem with the docPanel. When I add elements to it, it is very convenient to drop them in the section I want them to appear in, but afterwards, the last element does not take up the entire remaining area of the docPanel, as I understand it should. Unfortunately I'm totally new to Gwt as well as Gwt designer, so I apologize if this is a GWT function I am just not that familiar with. Currently I have added one West and one Center Panel. No matter what I do with changing their height and width or adjusting them both to be West panels, they are separated by a huge gap.
The code generated for the docPanel is:
- Code: Select all
public class OSP implements EntryPoint {
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
final DockPanel dockPanel = new DockPanel();
rootPanel.add(dockPanel, 0, 0);
dockPanel.setSize("100%", "100%");
final VerticalPanel verticalPanel = new VerticalPanel();
dockPanel.add(verticalPanel, DockPanel.WEST);
final HorizontalPanel horizontalPanel = new HorizontalPanel();
dockPanel.add(horizontalPanel, DockPanel.WEST);
}
}
I've attached an image of what this looks like in design view. As you can see there is a huge gap between the 2 panels. Can you tell me what I'm doing wrong with this?
Thanks,
Courtenay