问题描述
我有一个简单的Vaadin portlet,它显示一个嵌入式页面,例如www.stackoverflow..com。在Liferay中,我将portlet所在的页面布局设置为1列布局,以便portlet填满整页。现在,如果我调整浏览器的大小(Firefox 11),那么portlet根本不受影响。如果我调整浏览器大小,有没有办法让我的Portlet调整大小?我检查了?调试控制台没有布局错误,如果我调整我的broswer vaadin似乎调用一些调整大小的funktions来设置新的高度,宽度
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
但没有任何反应。
我正在使用vaadin 6.6.6和liferay 6.1
Im working with vaadin 6.6.6 and liferay 6.1
推荐答案
试着看一下Liferay中的Iframe portlet。这个portlet使用javascript来调整自身的大小,基本上可以实现你想要实现的目标。
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.
这篇关于在Liferay中控制Portlet的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!