Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column Width #18

Open
ryanlanciaux opened this issue Aug 3, 2015 · 2 comments
Open

Column Width #18

ryanlanciaux opened this issue Aug 3, 2015 · 2 comments
Labels

Comments

@ryanlanciaux
Copy link
Member

Allow columns to have a width property that determines how it is displayed.

See: GriddleGriddle/Griddle#94

@vidhib
Copy link

vidhib commented Sep 10, 2015

I'm using column width in table metadata and it works great. The problem is that when I set useFixedHeader={true} in my griddle, column width works only for the header. If I look at the code when that happens because using fixed header attribute creates 2 tables.
Here's an example. There's is no <th> in the second table and column widths are not being applied.

<table style="width:100%;table-layout:fixed;" >
<thead >
<tr>
<th style="width:30%"><span>id</span> </th>
<th style="width:40%"><span>name</span> </th>
</tr>
</thead>
</table>
<div style="position:relative;overflow-y:scroll;height:400px;width:100%;">
<table class="" style="width:100%;table-layout:fixed;">
<tbody>
<tr>
<td style="width:10%"><span>1</span> </td>
<td style="width:20%"><span>test</span> </td>
</tr>
</tbody>
</table>
</div>

@sinzin91
Copy link

I have this same issue, is there an eta on fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants