GWT:如何让tabPanel达到100%的高度 [英] GWT:how to make tabPanel to 100% height

查看:119
本文介绍了GWT:如何让tabPanel达到100%的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < 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屋!

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