Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    window as a member of layout - problem with "restore" functionalty

    Hi,

    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();  
        }  
    }
    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.
    Last edited by piotr286; 5 Jul 2010, 10:59.
Working...
X