Skip to content

Commit

Permalink
Merge pull request #460 from Kitware/r-resize
Browse files Browse the repository at this point in the history
Rerender on resize in R library
  • Loading branch information
jeffbaumes committed Oct 24, 2016
2 parents 23c6cd4 + 946fee9 commit 0bf7cdf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/candela/inst/htmlwidgets/candela.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ window.HTMLWidgets.widget({
renderValue: function (x) {
var render = function () {
if (window.candela) {
console.log(JSON.stringify(x));
visualization = new window.candela.components[x.name](el, x.options);
visualization.render();
} else {
Expand All @@ -18,7 +17,7 @@ window.HTMLWidgets.widget({
render();
},
resize: function (width, height) {
// TODO: code to re-render the widget with a new size
visualization.render();
}
};
}
Expand Down

0 comments on commit 0bf7cdf

Please sign in to comment.