Treegrid 9.3.11未在Chrome 61中加载 [英] Treegrid 9.3.11 not loading in chrome 61

查看:113
本文介绍了Treegrid 9.3.11未在Chrome 61中加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 var D = new TDataIO();

    D.Layout.Url = "scripts/treegrid_9_3_11/batch_treegrid_def.xml";

    if (layoutBonus)
    {
        D.Layout.Bonus = layoutBonus;
    }

    D.Data.Url = url;
    D.Debug = 0;
    D.Data.Timeout = 210;
    D.Page.Url = URL_CONTEXT + "LoadPage.action";
    D.Page.Format = "Internal";
    D.Page.Data = "TGData";
    D.Page.Timeout = 120;
    G = TreeGrid(D, "batchGrid");

在JSP中,我们正在创建一个像这样的div:

In JSP we are creating a div like this:

<s:div id="batchGrid" cssStyle="height:100% width:100%"/>

错误: 网格太小

不确定该div高度如何设置为0px?

Not sure how this div height is set as 0px?

<div id='batchGrid' style='height: 0px; overflow: hidden;'/>

batch_treegrid_def.xml cfg

batch_treegrid_def.xml cfg

   <Cfg id='batchTable' MainCol='Details'
     Sorting='0' Deleting='0' 
     Scrolling='1' ConstHeight='0' ConstWidth='1' MaxHeight='20'
     Paging='3' ChildPaging='3' PageLength='25'  Copying='1'
     RemoveCollapsed='2' 
     CopyFocused='0' 

     NoHScroll='0' Style='Modern' SuppressCfg='1' StandardTip='1'/>

推荐答案

根据文档:

要让网格最大化其主标签至窗口高度,页面上不得有以下内容:

To let grid maximize its main tag to window height, on your page there must not be:

a)任何父标签(从网格到的层次结构),其溢出设置为隐藏,自动或滚动.

a) any parent tag (in hierarchy from grid to ) with overflow set to hidden, auto or scroll.

b)位置为绝对的任何父标签(从网格到的层次结构).

b) any parent tag (in hierarchy from grid to ) with position:absolute.

c)高度设置为百分比(例如,高度:100%)的任何标签(标签中包含的标签(不包括可见的溢出或绝对位置)除外).

c) any tag (except tags included in tag with not visible overflow or absolute position) with height set to percentage (like height:100%).

因此,基本上,您必须为div定义一个静态高度.

So basically, you have to define a static height for your div.

这篇关于Treegrid 9.3.11未在Chrome 61中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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