Title: remove lines on layout when split is false
Post by: Juan Antonio Martínez on May 30, 2015, 11:11:57 AM
When using easyui-layout, Is there any way to remove "residual" lines when split is set to false in other regions than "center"? I've tried "border:false", but only seems to work in region:'center'. When applied to other regions just make them dissappear
Thanks in advance Juan Antonio
Title: Re: remove lines on layout when split is false
Post by: stworthy on May 30, 2015, 06:06:42 PM
Please show an example to demonstrate your issue.
Title: Re: remove lines on layout when split is false
Post by: Juan Antonio Martínez on May 30, 2015, 10:10:40 PM
From your example code: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Basic Layout - jQuery EasyUI Demo</title> <link rel="stylesheet" type="text/css" href="../lib/jquery-easyui-1.4.2/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="../lib/jquery-easyui-1.4.2/themes/icon.css"> <link rel="stylesheet" type="text/css" href="../lib/jquery-easyui-1.4.2/demo/demo.css"> <script type="text/javascript" src="../lib/jquery-easyui-1.4.2/jquery.min.js"></script> <script type="text/javascript" src="../lib/jquery-easyui-1.4.2/jquery.easyui.min.js"></script> </head> <body> <h2>Basic Layout</h2> <p>The layout contains north,south,west,east and center regions.</p> <div style="margin:20px 0;"></div> <div class="easyui-layout" style="width:700px;height:350px;"> <div data-options="region:'north',split:false,border:false" style="height:50px"></div> <div data-options="region:'south',split:true" style="height:50px;"></div> <div data-options="region:'east',split:true,title:'hello'" style="height:50px;"></div> <div data-options="region:'west',split:true" style="width:100px;"></div> <div data-options="region:'center',title:'Main Title',iconCls:'icon-ok'"> <table class="easyui-datagrid" data-options="url:'../lib/jquery-easyui-1.4.2/lib/demo/layout/datagrid_data1.json',method:'get',border:false,singleSelect:true,fit:true,fitColumns:true"> <thead> <tr> <th data-options="field:'itemid'" width="80">Item ID</th> <th data-options="field:'productid'" width="100">Product ID</th> <th data-options="field:'listprice',align:'right'" width="80">List Price</th> <th data-options="field:'unitcost',align:'right'" width="80">Unit Cost</th> <th data-options="field:'attr1'" width="150">Attribute</th> <th data-options="field:'status',align:'center'" width="60">Status</th> </tr> </thead> </table> </div> </div>
</body> </html>
If you use "split:true,border:false" in "norht" region works fine, but setting both to "false" makes region dissappear Juan Antonio
Title: Re: remove lines on layout when split is false
Post by: stworthy on May 31, 2015, 06:00:52 PM
To solve this issue, please add the following code to the page. <style type="text/css"> .layout-body{ min-width: 1px; min-height: 1px; } </style>
Title: Re: remove lines on layout when split is false
Post by: Juan Antonio Martínez on June 02, 2015, 04:08:26 AM
Works fine. !thanks a lot!
|