Announcement

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

    Portlets on minimize

    Hi,

    I have created a portal with just two portlets, but when i click on the minimize button of the portlet, the portlet below does not move up to fill the gap. I also noticed the sample portal does not use the portal in the package or is this added to it?

    Regards.

    Code:
    	/**
    	 * This is the entry point method.
    	 */
    	public void onModuleLoad() {
    		VLayout vLayout = new VLayout();
    		vLayout.setWidth100();
    		vLayout.setHeight100();
    		
            final PortalLayout portalLayout = new PortalLayout(3);
            portalLayout.setWidth100();
            portalLayout.setHeight100();
                   
    
            // create portlets...
            for (int i = 1; i <= 2; i++) {
                Portlet portlet = new Portlet();
                portlet.setTitle("Portlet");
    
                Label label = new Label();
                label.setAlign(Alignment.CENTER);
                label.setLayoutAlign(VerticalAlignment.CENTER);
                label.setContents("Portlet contents");
                label.setBackgroundColor("red");
                
                portlet.setVPolicy(LayoutPolicy.NONE);
                portlet.setOverflow(Overflow.VISIBLE);
                
                portlet.addItem(label);
                portalLayout.addPortlet(portlet);
            }
    		
            vLayout.addMember(portalLayout);
            
    		vLayout.draw();
    	}

    #2
    Hi,

    I'm seeing the same problem, is it preferable to use the approach in the sample at http://www.smartclient.com/smartgwt/...eatured_portal?

    It would be nice if the inbuilt PortalLayout functioned in the same manner in regards to minimising portals.

    Comment

    Working...
    X