- 注册时间
- 2012-10-29
- 最后登录
- 2018-4-2
- 阅读权限
- 10
- 积分
- 235
- 精华
- 0
- 帖子
- 47
|
hks2002 发表于 2017-3-20 14:44
我再看看,刚才试了一下,直接套在tab里没有问题。有可能是我最外层有个layout的原因, ... - <div id="layout1" class="mini-layout" style="width:100%;height:100%;">
- <div region="north" showsplit="false" showheader="false" height="0">
- </div>
- <div title="center" region="center" bodystyle="overflow:hidden;">
- <!--ToolBars-->
- <div class="mini-toolbar" style="margin:0px;background:white;border:0" >
- <a class="mini-button" >增加</a>
- <a class="mini-button" >修改</a>
- <a class="mini-button" >删除</a>
- <span class="separator"></span>
- <a class="mini-button" >增加</a>
- <a class="mini-button" >修改</a>
- <a class="mini-button" >删除</a>
- <input class="mini-textbox" />
- <a class="mini-button" plain="true">查询</a>
- </div>
- <!--Tabs-->
- <div id="mainTabs" class="mini-tabs bg-toolbar" activeindex="0" style="width:100%;height:100%;" bodystyle="border:0;background:white;" maskonload="false">
- <div title="首页" url="uisetting">
- <!--Tabs-->
- <div id="uiSettingTabs" class="mini-tabs bg-toolbar" activeindex="0" style="width:100%;height:100%;" bodystyle="border:0;background:white;" maskonload="false">
- <div title="菜单(Menus)" url="menu">
- <fieldset id="SearchFieldset" class="hideFieldset">
- <legend><label><input type="checkbox" id="checkbox1" onclick="toggleSearchFieldset(this, 'SearchFieldset')" hidefocus="" />搜索条件(Search Criteria)</label></legend>
- <div class="fieldset-body">
- <form id="menuSearch">
- <input labelfield="true" label="ID:" id="id" name="menuId" class="mini-textbox" />
- <input labelfield="true" label="Menu Name:" id="menuName" name="menuName" class="mini-textbox" />
- <input labelfield="true" label="menuTooltip" style="width:400px;" id="menuTooltip" name="menuTooltip" class="mini-textarea" />
- <input labelfield="true" label="menuDesc" style="width:400px;" id="menuDesc" name="menuDesc" class="mini-textarea" />
- <input labelfield="true" label="createdAt" id="createdAt" name="createdAt" class="mini-datepicker" />
- <input labelfield="true" label="createdBy" id="createdBy" name="createdBy" class="mini-textbox" />
- <input labelfield="true" label="updatedAt" id="updatedAt" name="updatedAt" class="mini-datepicker" />
- <input labelfield="true" label="updatedBy" id="updatedBy" name="updatedBy" class="mini-textbox" />
- <input labelfield="true" label="ComboBox:" name="op_menuId" class="mini-combobox" url="sqlsearch/sqlComparisonOperator" value="Equal" textfield="text" valuefield="op" />
- </form>
- </div>
- </fieldset>
- <div class="mini-toolbar" style="margin:3px;background:white;border:0">
- <a class="mini-button" onclick="onSearch">搜索(Search)</a>
- <a class="mini-button" onclick="onClear">清除(Clear)</a>
- </div>
- <!--撑满页面-->
- <div class="mini-fit">
- <div id="menuGrid" class="mini-datagrid" url="menu/ajaxService?method=getpagejson" showloading="false" allowalternating="true" showemptytext="true" emptytext="无返回数据(No data found)!" style="height:100%" sizelist="[10,50,100,500,1000]">
- <div property="columns">
- <div name="action" width="120" headeralign="center" align="center" renderer="onActionRenderer" cellstyle="padding:0;">#</div>
- <div field="menuId" width="120" allowsort="true">ID</div>
- <div field="menuName" width="100" allowsort="true" renderer="onGenderRenderer">名称</div>
- <div field="menuTooltip" width="100" allowsort="true">提示</div>
- <div field="menuDesc" width="100" allowsort="true" dateformat="yyyy-MM-dd">描述</div>
- <div field="createdAt" width="100" dateformat="yyyy-MM-dd" allowsort="true">创建日期</div>
- <div field="createdBy" width="100" allowsort="true">创建人</div>
- <div field="updatedAt" width="100" dateformat="yyyy-MM-dd" allowsort="true">更新日期</div>
- <div field="updatedBy" width="100" allowsort="true">更新人</div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- mini.layout();
- mini.parse();
- function toggleSearchFieldset(ck, id){
- var dom = document.getElementById(id);
- dom.className = !ck.checked ? "hideFieldset" : "";
- mini.layout();
- }
- function onSearch() {
- var menuGrid = mini.get("menuGrid");
- var menuSearch = new mini.Form("menuSearch");
- var data = menuSearch.getData(); //获取表单多个控件的数据
- var key = mini.encode(data);
- menuGrid.load({ key: key });
- }
- </script>
- </div>
- <div title="菜单组(Menus Groups)" url="menusgroup">
- </div>
- <div title="按键(Buttons)" url="button">
- </div>
- <div title="标签页(Tabs)" url="tab">
- </div>
- <div title="代办(To Do List)" url="todolist">
- </div>
- </div>
- </div>
- <div title="首页2" url="menu">
- </div>
- <div title="首页3" url="dept/index">
- </div>
- <div title="首页4" url="dept/show/1">
- </div>
- </div>
- </div>
- <div title="south" region="south" showsplit="false" showheader="false" height="30">
- </div>
- </div>
-
复制代码 找到问题产生的地方了,就是中间有个toolbar. 去掉toolbar后,显示就正常了,这个toolbar需要怎么修改呢? |
|