-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
table height is not flexible #263
Comments
This can be done by setting the height to |
Closing as this issue has been abandoned. Feel free to reopen if needed. |
@offirgolan Could you provide an example of this? |
@offirgolan Could you provide an example |
This will work for fixed header / footer as well. Check out app.css for the container styles. |
Even with the new changes the height of table remained constant (same as container height) irrespective of row count https://ember-twiddle.com/1321a9735b05f9500b1f71243fd5d148?openFiles=styles.app.css%2C |
That's not how it works. You either can use fixed headers and make the table adopt to the container (or have an otherwise defined height) or you don't use fixed headers but get to use the table's intrinsic height. That's a limitation of CSS. I'm sorry. If you absolutely must use fixed headers and a row count dependent height, you could compute the height (via a computed property with dependent key |
👍
|
I'm also interested in both having a fixed header and collapsible table... I'm guessing adding a |
Well there are different solutions to this problem. One would be defining an explicit fixed row height and multiplying that by Alternativel we could read the This is something that could also be built into ember-scrollable itself. I think e-s keeps track of the scroll height anyways. Not sure though. @alexander-alvarez Thoughts? |
I'm not sure of a super nice way to do this given the current setup with |
When giving the table a height, the table height is always fixed even if there are no records.
So I want to have a feature for setting the max-height so the table height would be maximal as high as the definded height, but when there are no records or just a few it would be smaller then the defined height
The text was updated successfully, but these errors were encountered: