Opened 4 years ago

Closed 22 months ago

#11394 closed defect (needmoreinfo)

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: cleaning Cc:
Depends on:
Verified: no
Fv: no


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) (34.5 KB) - added by dnebing 4 years ago.
Source project for the submission.
v7-test-portlet- (31.0 KB) - added by dnebing 4 years ago.
War file for Liferay 6.1.1 CE GA2 (the edition).

Download all attachments as: .zip

Change history (7)

Changed 4 years ago by dnebing

Source project for the submission.

Changed 4 years ago by dnebing

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

comment:1 Changed 4 years ago by dnebing

BTW, I'm using Liferay 6.1.1 CE GA2 (the version from which has a number of Liferay patches applied). Widgetset is defined in 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 4 years 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 3 years ago by Artur Signell

  • Verified unset

comment:4 Changed 2 years ago by Artur Signell

  • Fv unset

comment:5 Changed 22 months ago by Artur Signell

  • Keywords cleaning added
  • Resolution set to needmoreinfo
  • Status changed from new to closed

A lot of tickets have been left hanging in the issue tracker through the years. Some of them are still relevant, some of them have been fixed a long time ago and some are no longer valid. To get a better look on what is important and still relevant, we are closing old tickets which have not been touched in a long time.

No further work will be done on this ticket unless someone indicates that it's still relevant.

If this ticket is still relevant to you, please reopen it.

Note: See TracTickets for help on using tickets.