Btw, I'm only considering not using the DeckPanel because it seems to
produce weird results when used with widgets that have different
margins and sizes...
Any suggestions would be appreciated.
Thanks.
package com.fxl.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.*;
public class ProjectManager implements EntryPoint
{
private static ProjectManager self = null;
private VerticalPanel root = new VerticalPanel();
//private DeckPanel deck = new DeckPanel();
private FlowPanel deck = new FlowPanel();
private Login login = new Login();
private Home home = new Home();
private Widget current = null;
private Footer footer = new Footer();
public void onModuleLoad()
{
self = this;
RootPanel.get("fxl-Content").add(root);
RootPanel.get("fxl-Loading").setVisible(false);
root.setWidth("100%");
deck.setWidth("100%");
root.add(deck);
root.add(footer);
//deck.add(login);
//deck.add(home);
// the following is needed because
// the deckpanel sets it to 100%
//login.setWidth("auto");
if (!User.isLoggedIn())
gotoLogin();
else
gotoHome();
}
public static void setLoading(boolean b)
{
RootPanel.get("fxl-Loading").setVisible(b);
}
public static void gotoLogin()
{
self.changeTo(self.login);
}
public static void gotoHome()
{
self.home.init();
self.changeTo(self.home);
}
private void changeTo(Widget next)
{
//deck.showWidget(deck.getWidgetIndex(next));
if (current != null)
deck.remove(current);
if (next != null)
{
deck.add(next);
current = next;
}
}
}
I've entered a bug for this into our system. We'll reply back when we
know more.
Thanks,
Scott
Btw, if this helps, I found a website where they seemed to be having
the same problem. Their solution was that they were missing a
"document.close()" call after document.write or document.innerHTML.The
site is:
http://www.webmasterworld.com/forum119/286.htm
Hope that helps.