Actually you CAN use LayoutPanels just fine within your application where it makes sense. The only restriction is, you must either set their size explicitly, or implement a resize event. I've been using them for instance inside of DialogBoxes and such, even though I don't currently use them in my main page. The only thing to note is that you still must put the page in standards mode, and so all of the other restrictions that come with that apply everywhere on you page. Check out "Using a LayoutPanel without RootLayoutPanel" in
http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#Recipes jk On Apr 16, 2:20 am, googelybear <[email protected]> wrote: > Hi, > > I am struggling with the same problem: I use the DockLayoutPanel as my > main container (being a good coder following Google's recommendations: > Use the new LayoutPanels they are much better/predictable/ > compatible ..so I hoped on the train) but I want the browser to > display a scrollbar as soon as the content gets too long. I tried to > stuff the DLP in a scrollPanel but no success (as also described > here:http://blog.discovr.net/post/516022222/how-to-design-a-gwt-layout-tha...). > > What do you recommend to do? Are there people in Google working on > this problem or is this just the way it is? Should I re-write my app > to use a DockPanel as main container? With the consequences that I > cannot use the new LayoutPanels anymore anywhere in my app > (LayoutPanel inside traditional panel = no good, usually)? > > Thanks for any suggestions/advice. > > Dennis > > On Apr 7, 4:45 pm, kozura <[email protected]> wrote: > > > > > Yes, you want the flowpanel. The DockLayoutPanel as a top > > levellayoutpanelis intended for when you want your app to take up 100% of > > the browser height, and use internalscrollingvs full browserscrollingto > > manage overflow. > > > On Apr 7, 6:42 am, Ian Bambury <[email protected]> wrote: > > > > You could use a flowpanel instead - no need to complicate things > > > unnecessarily. > > > > Ian > > > >http://examples.roughian.com > > > > On 7 April 2010 11:06, larsbjo <[email protected]> wrote: > > > > > There might be a very simple answer to this in the forum already. If > > > > so please have me apologized. > > > > > I'm making a GWT app using DockLayoutPanel adding 3 panels; A header, > > > > a contentpaneland a footer. More or less like this: > > > > > -------------------------------------- > > > > header > > > > -------------------------------------- > > > > content > > > > > -------------------------------------- > > > > footer > > > > -------------------------------------- > > > > > I'm using DockLayoutPanel and .addNorth for header .addSouth for > > > > footer and .add for content. > > > > > Content is dynamically filled and the size is therefor unpredictable. > > > > My problem is simply: when the content fills more than the available > > > > space on the screen. The content is simply hidden by the footer. > > > > How can I have "content" push the footer down and add a scroll-bar on > > > > the page. I don't want a scroll-bar between header and footer. I want > > > > a "normal" scroll-bar on the page itself. In other words. How can a > > > > make my GWT app behave like any other sane web-app? > > > > > Thank you! > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "Google Web Toolkit" group. > > > > To post to this group, send email to > > > > [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<google-web-toolkit%[email protected]> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > 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 > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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.
