From 2dbb1b9d16a858d453a150de5e82abe19f1c4ec6 Mon Sep 17 00:00:00 2001 From: JohnCoene Date: Mon, 11 Jan 2021 11:49:40 +0100 Subject: [PATCH] add resize method --- inst/htmlwidgets/rhandsontable.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inst/htmlwidgets/rhandsontable.js b/inst/htmlwidgets/rhandsontable.js index 56d842f..f24ba74 100644 --- a/inst/htmlwidgets/rhandsontable.js +++ b/inst/htmlwidgets/rhandsontable.js @@ -81,7 +81,11 @@ HTMLWidgets.widget({ }, resize: function(el, width, height, instance) { - + if(instance) + instance.hot.updateSettings({ + width: width, + height: height, + }); }, afterRender: function(x) {