Announcement

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

    [BUG submit] Window doesn't resize correctly when not visible

    SmartGWT versions : 2.5, 3.0
    Browser : FF 11 (Only tested in this one)
    GWT Dev Mode (Not tested in production mode)

    Steps to reproduce :

    1. Click many times in the "add new item to window" button (5 - 8 times)
    2. Click the "show" button

    The content of the window goes beyond the window. Please check screenshot.

    Code:
    		final Window window = new Window();
    		window.setAutoSize(true);
    		window.setVisible(false);
    
    		IButton button = new IButton("add new item to window");
    		button.setAutoFit(true);
    		button.addClickHandler(new ClickHandler()
    		{
    			@Override
    			public void onClick(ClickEvent event)
    			{
    				DynamicForm form = new DynamicForm();
    				form.setItems(new SelectItem());
    				window.addItem(form);
    			}
    		});
    
    		IButton button2 = new IButton("show");
    		button2.addClickHandler(new ClickHandler()
    		{
    			@Override
    			public void onClick(ClickEvent event)
    			{
    				window.setVisible(true);
    
    			}
    		});
    
    		HLayout layout = new HLayout();
    		layout.setMembers(window, button, button2);
    
    		layout.draw();
    Best Regards.
    Attached Files

    #2
    This also applies, when working with a Layout (VLayout or HLayout).

    1. Create a VLayout
    2. Set the VLayout to showEdges
    3. Set visibility to false
    4. Add elements while invisible
    5. Make it visible

    Note that the border doesn't show as expected. (Please check attachments).
    Attached Files

    Comment


      #3
      May I have some feedback ? Thanks in advance.

      Comment


        #4
        We see the issue and have made a change to address this in the 3.1d branch (will show up in the next nightly build).

        Regards
        Isomorphic Software

        Comment


          #5
          Thank you sir !

          Have a nice day!

          Comment

          Working...
          X