EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: mzeddd on March 28, 2016, 05:03:18 AM



Title: Question about table and textbox
Post by: mzeddd on March 28, 2016, 05:03:18 AM
I'm trying to put the following table
Code:
<table style="width:100%" border=1>
<tr>
<td style="width:30px"><input class="easyui-textbox" style="width:30px" value="TC" disabled></td>
<td style="width:5px">-</td>
<td style="width:130px"><input class="easyui-textbox" style="width:130px" value="CODE" disabled></td>
<td style="width:5px">-</td>
<td style=""><input class="easyui-textbox" style="width:100%" value="UNIQ_ID" disabled></td>
</tr>
</table>
into "east" layout (inside Dialog) discussed in this topic http://www.jeasyui.com/forum/index.php?topic=5742.0 (http://www.jeasyui.com/forum/index.php?topic=5742.0)

When I resize panel to make it bigger UNIQ_ID field gets bigger as expected but it is not getting smaller when I resize panel in opposite direction.

Do you know what I'm doing wrong?


Title: Re: Question about table and textbox
Post by: stworthy on March 28, 2016, 05:00:35 PM
The 'table-layout:fixed' style should be applied to the <table>.
Code:
<table style="width:100%;table-layout:fixed" border=1>
...
</table>


Title: Re: Question about table and textbox
Post by: mzeddd on March 29, 2016, 01:26:21 AM
Perfect!

Thanks!