On Wednesday, September 19, 2012 11:14:18 PM UTC+2, Marco wrote: > > Hello, > i have planned to design my application with following areas: > ----------------------------------- > Toolbar Area > ---------------------------------- > Workspace Header (for some information or filter criteria's) > ----------------------------------- > Workspace Area > ----------------------------------- > Statusbar Area > ----------------------------------- > > To use a datagrid which automatically resizes with the screensize, I have > read that the best way > is to use the DockLayoutPanel. > I have also read following article: > https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels > > In this articel it's also recommended to use Layout Panels for better > standard mode support. > Therefore I have build a very easy example to test the Layout Panels. > > In my GwtTestDock.java example I have created a empty application skeleton > with Layout Panels. > In GwtTestDockFilled.java I have filled this skeleton with some widgets. > > In this example I have some problems: > * The css padding is not working for SimpleLayoutPanel. Which class should > I use instead? > I want to use the css padding in the empty skeleton class because if I > replace the widgets for > this place holder, it should automatically use the css of the parent > (slpWorkspaceHeaderPlaceholder). > I don't want to set the padding for every child > of slpWorkspaceHeaderPlaceholder. >
I'm not sure I understand that one, but maybe try getWidgetContainerElement(...).addClassName(...) And play around with Firebug or WebInspector or whichever dev tool for your browser of choice, then try to recreate what worked within GWT. > * The Disclosure Panel for "Additional Details" is not working. The reason > is because the DockLayoutPanel > has a fix size for North. I tested a solution that I just change the North > size if I open the Disclosure Pane but > the animation is not working. > Try HeaderPanel. > * Is this the right track to design my application or should I use > different Panels? > It depends. Maybe a FlowPanel would be enough for the DisclosurePanel+center widgets, it depends what layout you want to achieve for those. If you feel more comfortable with CSS, then use RootPanel/FlowPanel/HTMLPanel instead. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8YcSHY23cdgJ. 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.
