GWT:如何让tabPanel达到100%的高度 [英] GWT:how to make tabPanel to 100% height
问题描述
< g:HTMLPanel>
< div class =center>
barHeight =40width =100%;>
< g:标签>
< g:header>
DashBoard
< / g:header>
< / g:TabLayoutPanel>
使用此功能作为我的tabpanel高度
.gwt-TabLayoutPanel {
min-height:500px;
}
其工作正常,但我希望这个高度为100%,但是当我做到100%,整个TabPanel消失,
任何解决方案..coz当我的东西高度增加,下面的开始切断..
p>谢谢
100%高度的问题是1px如果父容器没有设置高度。
您可能会发现以下文章介绍可能的工作周期。
http://www.tutwow.com/htmlcss/ quick-tip-css-100-height /
I am using TabPanel in my GWt application
<g:HTMLPanel>
<div class="center">
<g:TabLayoutPanel ui:field="tabPanel" barUnit="PX"
barHeight="40" width="100%;">
<g:tab>
<g:header>
DashBoard
</g:header>
</ g:TabLayoutPanel>
using this for my tabpanel height
.gwt-TabLayoutPanel {
min-height:500px;
}
its working fine , BUT i want this height to be 100%, But when I make it to 100% ,The whole TabPanel disappears ,
Any solution for that ..coz when my stuff hights increase , the lower are start cutting off ..
thanks
The problem with 100% height is it will be 1px if the parent container does not have a height set.
You might find the following article intresting as a possible workarround. http://www.tutwow.com/htmlcss/quick-tip-css-100-height/
这篇关于GWT:如何让tabPanel达到100%的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!