垂直居中gwt [英] vertical centering in gwt

查看:94
本文介绍了垂直居中gwt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果你想从代码中直接使用 VerticalPanel ,你需要使用 setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE)



您也可以使用UiBinder方法

 < g: VerticalPanel verticalAlignment ='ALIGN_MIDDLE'horizo​​ntalAlignment ='ALIGN_CENTER'width =100%height =500px> 
< g:cell>< / g:cell>
< / g:VerticalPanel>

观看 DevGuideUiPanels 获取示例和文档


how to vertical centering in gwt by using vertical panel.. or pls sugest me is there any way for doing vertical cetering

解决方案

If you want to directly use the VerticalPanel from code, you need to use the setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE)

You can also use the UiBinder approach

<g:VerticalPanel verticalAlignment='ALIGN_MIDDLE' horizontalAlignment='ALIGN_CENTER' width="100%" height="500px">
  <g:cell></g:cell>
</g:VerticalPanel>

Take a look to DevGuideUiPanels for examples and documentation

这篇关于垂直居中gwt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆