Do you use 'appPanel' in different places? an element can have only one parent, adding an element to a different parent automatically removes it from its previous parent.
On 10 February 2015 at 17:44, Nicholas Smith <[email protected]> wrote: > My bug was due to having introduced a second instance of my template, so > when calling to update content it as on the second instance, not the one > actually being displayed. > > I tried switching from DockLayoutPanel to HeaderPanel as suggested > by Vassilis, but I can't get the content area to be scrollable. Here's the > two versions of code, and screenshots that show the issue. Does anyone know > what the problem is? > > Here's the two versions of my code. First up, this uses DockLayoutPanel, > and renders correctly. > > http://pastebin.com/DHqXmBp7 > > See screenshot: http://snag.gy/v9pgY.jpg > > And here's the version with HeaderPanel, the center content is not > scrollable. > > http://pastebin.com/4yEhKC4A > > And the screenshot: http://snag.gy/jFB3P.jpg > > > > > > On Tuesday, February 10, 2015 at 2:36:53 AM UTC-6, Vassilis Virvilis wrote: >> >> Furthermore I would suggest the HeaderPanel (terrible name - but very >> cool widget) instead of the DockLayoutPanel so your header and footer can >> be __naturally__ sized without having to specify exact size. >> >> Vassilis >> >> On Tue, Feb 10, 2015 at 12:55 AM, Jens <[email protected]> wrote: >> >>> Put a SimplePanel in your DockLayoutPanel and then set the ActionBar >>> into that SimplePanel using SimplePanel.setWidget(). >>> >>> In your setActionBar() method call SimplePanel.setWidget(newBar) to >>> replace the old ActionBar with the new one. >>> >>> So you basically put a container widget into your DockLayoutPanel and >>> then update the contents of the container widget through your setter method. >>> >>> >>> -- J. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google Web Toolkit" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/google-web-toolkit. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Vassilis Virvilis >> > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
