Button buttonHTMLDefault = new Button("HTML setSize(\"\", \"\")");
buttonHTMLDefault.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
removeGlassPanel();
Element htmlElement = DOM.getParent(RootPanel.getBodyElement());
DOM.setStyleAttribute(htmlElement, "width", "");
DOM.setStyleAttribute(htmlElement, "height", "");
resetGlassPanels();
}
});
Button buttonHTMLLarge = new Button("HTML setSize(\"2000px\", \"2000px\")");
buttonHTMLLarge.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
removeGlassPanel();
Element htmlElement = DOM.getParent(RootPanel.getBodyElement());
DOM.setStyleAttribute(htmlElement, "width", "2000px");
DOM.setStyleAttribute(htmlElement, "height", "2000px");
resetGlassPanels();
}
});