Ticket #11394 (new defect)

Opened 13 months ago

Last modified 13 months ago

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
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

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

Change History

Changed 13 months ago by dnebing

Source project for the submission.

Changed 13 months ago by dnebing

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

comment:1 Changed 13 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 13 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 5 months ago by Artur Signell

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