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.
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();
}
Comment