在gwt中,我设置托管页面html height = 100%和body height = 100%然后在入口点Class中,我设置rootpanel height = 100%和width = 100%并且封闭的docklayoutpanel高度= 100%和宽度= 100%。 但是在portlet view.jsp中,因为它只是整个页面的一个片段,所以它没有和元素,所以如何将此设置迁移到portlent(liferay portal protlet)
答案 0 :(得分:2)
前段时间,我在我的博客中写了一篇关于的小条目,其中包括Liferay portlet中的GWT portlet 。
如果您按照我所描述的步骤操作,则只需将docklayoutpanel尺寸设置为100%。
http://www.jmichelgarcia.com/2012/gwt-smartgwt-in-a-liferay-portlet/
修改强>
关于尺寸问题,我找不到一个好的解决方案。但是,如果有帮助,您可以使用GWT在运行时检索屏幕大小。
据我所知,Liferay的portlet政策是根据其内容确定大小。
请参阅:Controling the size of a Portlet in Liferay
这:https://vaadin.com/forum/-/message_boards/view_message/433164
并且:http://www.liferay.com/community/forums/-/message_boards/message/10327941