Controling the size of a Portlet in Liferay

前提是你 提交于 2019-12-22 08:52:56

问题


I have a simple Vaadin portlet which displays an Embedded page e.g www.stackoverflow..com. In Liferay I set the page layout where the portlet is to 1 column Layout so that the portlet fills out the full page. Now if I resize my browser (Firefox 11) the portlet is not being effected at all. Is there a way to make my Portlet resize itself if I resize my Browser ? I checked the ?debug console there are no layout errors and if I resize my broswer vaadin seems to call some resize funktions to set the new height, Width

Running layout functions due to window resize
New window width: 1265
New window height: 906

but nothing happens.

Im working with vaadin 6.6.6 and liferay 6.1


回答1:


Try to have a look at Iframe portlet which is in Liferay. This portlet uses javascript to resize itself and does basically what you want to achieve.



来源:https://stackoverflow.com/questions/10205786/controling-the-size-of-a-portlet-in-liferay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!