-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Support variable width row headers #475
Comments
I second this request. I have header cells that need large widths as well. Thanks! |
Seems to be similar to #328 |
Yes, it is very similar, and I found that thread long ago, however the suggested solution did not fix the problem. If you're able to modify the CSS as suggested on my jsfiddle example and cause the rows to be variable width and scrolling to continue to work I'll be happily mistaken. Regards, |
I am also running into this issue as well where you can't scroll to the last cell. I plan on calculating the visible columns, average column size, and setting the width of the table so it's the browser's scroll bar and not the handsontable. |
Version 0.9.0 no longer uses hard-coded row header width. Thanks for reporting this! |
But you still have to define row header width using CSS - http://jsfiddle.net/4587J/9/ |
There is still no support for "variable width row headers". Your solution (below) hardcodes a width of 180px in the css. This won't work if a row header is a very long string longer than 180px, nor will it look good when all the row headers are very short. Since this issue was titled "Support variable width row headers", I think should remain open. Thanks. .handsontable col.rowHeader {
width: 180px;
} One additional comment: I do appreciate the situation is improved as you make it easier to define a fixed column width for the row headers. However, the idea is that the row headers are not known apriori during development and will vary as the table is populated dynamically. |
I'd like to echo the request to re-open this issue, since it has clearly not been addressed (there is no way to dynamically resize row headers). |
Does anyone know how to right align the row header? This doesn't seem to work: .handsontable col.rowHeader { |
Workaround var ht = new Handsontable( where id is the id of the html element which holds the handsontable |
Is there any CSS way to defined a 'auto-width' for row headers ? |
Could this issue be reopened? The JSFiddle posted by the OP (which I've updated with fixed links to CDN js/css) is still showing row headers fixed at 50px. As pointed out, the 50px can be overridden in CSS, but this isn't ideal. @realtebo No, not without using JavaScript to calculate what the magic width should be, and then applying it in CSS. |
@donmccurdy this issue is continued (and marked as a bug) at #2868 |
I'm working on a project which is attempting to use handsontable, however we're running up against the fact that the row-header-column is a fixed width (and not very wide). This cause the vast majority of our row header labels to be truncated. One alternative is to tweak the CSS and widen that first column a fixed amount, but this is not an option as the data we are displaying could vary in length/width. I've also tried changing the CSS and commenting out some of the lines with "width: 0" -- this "works" in that the row-header-column does indeed become variable width, but the scrolling logic becomes buggy.
Long story short, how can I get the below to show my row headers (without having a fixed-width column) and keep the nice scrolling functionality:
http://jsfiddle.net/4587J/6/
Thanks!
Charlie
The text was updated successfully, but these errors were encountered: