lunes, 6 de febrero de 2012

PORTLET SIZE VAADIN LIFERAY

The AbsoluteLayout works with portlets as such as Horizontal and Vertical Layout (Vaadin GUI) do , the only thing that you have to do is to modify the size of it in a fixed way, because the porcentual value doesn't works with portlets.

so:

The correct way to set the size is:
mainLayout.setWidth("500px");
mainLayout.setHeight("400px");

you CAN NOT do this:

AbsoluteLayout mainLayout= new AbsoluteLayout();
mainLayout.setWidth("-1px");
mainLayout.setHeight("-1px");

neither : mainLayout.setWidth("100%");


http://dev.vaadin.com/ticket/5521#comment:1

No hay comentarios: