-
Notifications
You must be signed in to change notification settings - Fork 3k
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 creates excess height under some circumstances #4141
Comments
Hi @JustASquid thanks for sharing. I guess I saw the same issue somewhere on our board however I'm not able to find it. |
+1 I'm also having this issue. I would like to be able to place multiple tables on the same page in a list, with each one taking up the height it needs and the page scrolling if necessary to display all the tables. The first table takes up the entire page and the second is not even visible. Is there any workaround you know of? |
Hi @GMNGeoffrey if you have fixed width columns it won't be hard to do - worse if columns are adjusting their width to the content. |
Hi @AMBudnik, Thanks for getting back. I can make my columns fixed width if necessary. I'd like to be able to have a variable number of rows, however. I can do something hacky involving giving the rows fixed height, looking at the number of rows and multiplying by the height and then using that to determine the height to give the element, but I'd prefer to avoid that if possible. Why does the HOT stretch to take up more space than it needs? Also when there's another HOT below it, why is it completely hidden instead of allowing it to be seen with vertical scrolling? Thanks! |
I'm also in need of a workaround. The fixed rows height multiplied by number of rows hack is definitely not ideal. |
@AMBudnik Any tips for a workaround here? |
Hi If you do not define Can you share a demo where the width of the Handsontable container is bigger than it should @JustASquid ? |
Hello, |
Hi @TuWebO thanks for joining the subject. Can you guide me how to replicate the issue? |
Hi @AMBudnik, Ok, I'll try to show you. Something like this in your jsfiddle: HTML
CSS
JS Remove line
I also should have red (better) the documentation. Thanks for your time. |
Thank you @TuWebO I have replicated the issue. Updated demo: http://jsfiddle.net/k8zzf4j6/ |
Hi @AMBudnik , Thanks for the fast response, hopefully this will give some clues... let's see. |
#4607 may provide additional insights into this issue. Copying the relevant comment.
|
Thank you for your effort to share it @dborisog edit: (inform Gr # 11205) |
I have the same issue - table height increases with horizontal scrolling. I tried the newest version of hot, 0.34 I believe, and 0.16.1 - got same problem in both cases. Is there a solution to it? |
Sorry, in the latest version in behaves the same way. |
So far I was able to fix the issue with: the whole object is created as: |
I just got an update from our devs team. We have investigated the issue and the reason the table behaves like this are the settings. If any container between the More information about the container behavior at our blog post https://handsontable.com/blog/articles/a-complete-guide-to-changing-size-of-handsontable |
It is not easy to enforce the condition that all containers between body and handsontable div need to have a fixed height. |
A complex form that has too many fields, in addition to handsontable, the outermost container need to have overflow as hidden. |
I completely agree. One library should force you to change anything else in your project. The overflow case is just something that we cannot change. Switching from pixels to fluid values is, of course, in our plans, however, as it is a very long and complex process we want to fix some quick but important issues before taking our hands on the pixel task. |
Description
The table seems to be creating a lot of excess height, well beyond the rows that are in the table. The only way to workaround the problem (that I have found) is to put the table in a container with a fixed height - but that workaround won't work for my application as the table needs to allow for dynamically added rows.
Notice in the above image that the height of wtHolder is being explicitly set to 1223px, which is much higher than the table needs to be. We don't specify the table height anywhere as it is intended to have dynamic height.
What could be causing something like this?
Your environment
The text was updated successfully, but these errors were encountered: