PDA

View Full Version : FormPanel in a Window looks yuk!


gslender
04-27-2008, 05:29 AM
Usage of a FormPanel within a Window looks odd... you get this white-ish background where the fields are but the buttons are rendered on top of another colour background. I think a test case should exist that ensures FormPanel looks correct within a dialog/window - right now I think it looks poor (margin is also a problem but that bug/issue was raised previously)...

darrellmeyer
05-13-2008, 02:02 AM
Both Window and FormPanel have many configurable options. As always, including a code snippet can really help to see what you describing more easily.

The this code for the nested FormPanel:

FormPanel panel = new FormPanel();
panel.setBodyStyle("background: none");
panel.setBodyBorder(false);
panel.setHeaderVisible(false);

The body style line will be able to be removed in beta3 as it is now done within form panel.

gslender
05-13-2008, 04:58 AM
As always, including a code snippet can really help to see what you describing more easily.

sorry bout that.... will try to include snippets going fwd - I felt this was obvious, and didn't really need me adding a formpanel to window to say "hey this looks terrible".

The body style line will be able to be removed in beta3 as it is now done within form panel.

Can you ellaborate on this - what will be changing? a method to remove the background style?