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

[Question] Is there a way to properly resize the table? #495

Closed
andrescardona opened this issue Mar 13, 2013 · 3 comments
Closed

[Question] Is there a way to properly resize the table? #495

andrescardona opened this issue Mar 13, 2013 · 3 comments
Labels

Comments

@andrescardona
Copy link

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.

@andrescardona
Copy link
Author

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.

@warpech
Copy link
Member

warpech commented Apr 12, 2013

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!

@warpech warpech closed this as completed Apr 12, 2013
@LukaszWiktor
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants