Layout panels prefer to be nested inside of layout panels, there are other ways around this ( you found one). This is one of the reasons why when using LayoutPanels you need to attach them to RootLayoutPanel.get() instead of RootPanel.get().
So to answer your question, change the HelloMVP example to remove the SimplePanel and just use our DockLayoutPanel instead or you could swap the SimplePanel for a Layout panel. Then just attach it to a RootLayoutPanel see http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html for more info. On Oct 24, 5:37 pm, Tamer Sezgin <tamer.sez...@gmail.com> wrote: > Hello, > > I'm currently working on the HelloMVP application that comes with RC1 > release, to understand the new MVP framework. > There, ActivityManager.setDisplay(AcceptsOneWidget display) is called with a > SimplePanel parameter (called appWidget). > > In my case, I want to use a main view that is implemented using > DockLayoutPanel as the main widget. > So, at runtime, when my view is to be displayed, MVP framework adds my > DockLayoutPanel to the SimplePanel (appWidget) used by the ActivityManager. > > But the problem is, somehow at runtime the DockLayoutPanel's > *style*attributes is set to " > *position: relative*" value and my view is not displayed at all. > > When I change this attribute manually (using the inspect element window) to > "position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px;" it is > displayed as expected. > > What's the recommended way of handling this issue? > > thanks, > Tamer. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.