Skip to content

Commit e3a0f4b

Browse files
author
Samuel Gratzl
authored
implement resize method
1 parent 8d98a1f commit e3a0f4b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

inst/htmlwidgets/lineup.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ HTMLWidgets.widget({
2525
},
2626

2727
resize: function(width, height) {
28-
// TODO: code to re-render the widget with a new size
29-
28+
el.style.width = width;
29+
el.style.height = height;
30+
lineup.update();
3031
}
3132

3233
};
3334
}
34-
});
35+
});

0 commit comments

Comments
 (0)