Opened 19 months ago

Last modified 19 months ago

#11394 new defect

V7 Portlet does not render when setHeight("100%") is used

Reported by: dnebing Owned by: ticketmaster
Priority: undefined Milestone:
Component: Core Framework Version: 7.0.3
Keywords: Cc:
Depends on:
Workaround:
Verified: no
Fv: no Pro Account: Mark as Priority

Description

Attaching Liferay project and portlet war file for your review...

com.vaadin.bugs.BugTest1UI creates a VerticalLayout, adds some labels, then sets the VL as the content for the ui. This will render fine in the portal.

com.vaadin.bugs.BugTest2UI does the same thing, but it sets the height for the VL to 100%. This portlet will not render in the portal.

Checking the rendered contents, the div for the "v-app liferay" (the main app div) has a height of only 1 pixel. Since it is only 1 pixel, the outer div for the portlet-body is also 1 pixel.

If I manually change the height if the "v-app" div to a fixed value (say 200px), the content renders. If I set the height of "v-app" to 100%, it will not render (parent elements are still only 1 pixel).

Attachments (2)

v7-test-portlet.zip (34.5 KB) - added by dnebing 19 months ago.
Source project for the submission.
v7-test-portlet-6.1.1.1.war (31.0 KB) - added by dnebing 19 months ago.
War file for Liferay 6.1.1 CE GA2 (the lcepatchers.org edition).

Download all attachments as: .zip

Change History (6)

Changed 19 months ago by dnebing

Source project for the submission.

Changed 19 months ago by dnebing

War file for Liferay 6.1.1 CE GA2 (the lcepatchers.org edition).

comment:1 Changed 19 months ago by dnebing

BTW, I'm using Liferay 6.1.1 CE GA2 (the version from lcepatchers.org which has a number of Liferay patches applied). Widgetset is defined in portal-ext.properties to use com.vaadin.DefaultWidgetSet. Version 7.0.3 is installed in the portal per instructions on the website, and widgetset has been compiled. Clearing the cache has no impact.

comment:2 Changed 19 months ago by dnebing

Setting a breakpoint on com.vaadin.server.WebBrowser.updateRequestDetails(), I can see that it does get invoked w/ appropriate dimension information, so the server side does have the dimensional details necessary to render sizing info...

comment:3 Changed 11 months ago by Artur Signell

  • Verified unset

comment:4 Changed 6 months ago by Artur Signell

  • Fv unset
Note: See TracTickets for help on using tickets.