Handsontable: [Question] Is there a way to properly resize the table?

Created on 13 Mar 2013  路  3Comments  路  Source: handsontable/handsontable

If I invoke a destroy and i try to initialize it aggain i just met the async renderer being broken (Using handsontable('destroy')). Resizing the container doesn't work either.

Bug

Most helpful comment

The demo seems to no longer include the "Maximize HOT table" button.

All 3 comments

I managed to resize the table (It takes about half of a second, and you can see the process :S), by having a listener on the resize event for window, but this only worked after making a change in the handsontable code, specifically in the onDrawMethod in line 2308, version 0.8.11, using a different name for the event, otherwise i just got an infinite loop.

In version 0.8.17 I added a possibility to use height and width options as a functions.

Now in version 0.8.18 Scroll demo was updated with "Maximize HOT table" button that shows nice usage of width() and height() to change HOT dimesions dynamically.

Thanks for your interest in Handsontable!

The demo seems to no longer include the "Maximize HOT table" button.

Was this page helpful?
0 / 5 - 0 ratings