Hi,
I wrote the following code:
When I click the 'minimize' button everything is ok. However, the problem is with "restore" button, because after I click it, the window doesn't return to its previous width. Instead, it extends to width=100% of the screen.
Is there any solution for this problem (I don't want to use canvas instead of layout)?
SmartGWT: v2.2, Firefox, Chrome, Eclipse
Thanks in advance.
I wrote the following code:
Code:
public class Testgwt implements EntryPoint {
public void onModuleLoad() {
Label label = new Label("Smartgwt");
VLayout layout = new VLayout();
final Window window = new Window();
window.setTitle("Minimizing a window");
window.setWidth("50%");
window.setHeight(85);
window.addItem(label);
window.setShowMaximizeButton(true);
layout.addMember(window);
layout.setWidth100();
layout.setDefaultLayoutAlign(Alignment.CENTER);
layout.draw();
}
}
Is there any solution for this problem (I don't want to use canvas instead of layout)?
SmartGWT: v2.2, Firefox, Chrome, Eclipse
Thanks in advance.