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

Data table with fixed height, but flexible (auto) column width. #144

Open
foal opened this issue Nov 7, 2018 · 4 comments
Open

Data table with fixed height, but flexible (auto) column width. #144

foal opened this issue Nov 7, 2018 · 4 comments
Assignees
Labels
data-table enhancement New feature or request
Milestone

Comments

@foal
Copy link

foal commented Nov 7, 2018

foal @foal нояб. 05 08:25
Is it possible somehow to have data table with a fixed height, but flexible column width?

Ahmad K. Bawaneh @vegegoku нояб. 05 08:29
did you try with a fixed table .. but without fixing the columns widths?
set the table as fixed but dont fix any column width

foal @foal нояб. 05 09:31
Yes. It didn't work

Ahmad K. Bawaneh @vegegoku нояб. 05 09:32
i will find some time today to work on your issues
so basicly you need to fix only the table height

foal @foal нояб. 05 09:35
Thank you! Yes, I need the table with fixed height (and body scroll if necessary).

@foal
Copy link
Author

foal commented Nov 7, 2018

Now it looks like
image

@foal
Copy link
Author

foal commented Nov 7, 2018

Mayby this will help to solve the issue https://codepen.io/yavuzselim/pen/LNYrBd

@vegegoku vegegoku self-assigned this Nov 7, 2018
@vegegoku vegegoku added enhancement New feature or request data-table labels Nov 7, 2018
@vegegoku vegegoku added this to the 1.0 milestone Nov 7, 2018
@vegegoku
Copy link
Member

vegegoku commented Nov 8, 2018

Mayby this will help to solve the issue https://codepen.io/yavuzselim/pen/LNYrBd

In the codepen the width of the columns isnt auto, it is actually uses a percentage widths.
this behavior is achievable but it requires all columns to have a percent width and the total should be 100% in order to render the table correctly.
@foal
if you still think it is worth the efforts i will gladly implement it. but as i said then you have to set the percent width for all columns.

@howudodat
Copy link

I know this is an old request, but I would vote +1 for this. I have a couple of tables where I would like the width to be flexible but the height fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-table enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants