0
Good afternoon. Sorry, I was wondering if you could use the onresize javascript event to resize a div/container.
I’m using that code:
var resizeTimer;
window.onresize = function (event) {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function () {
var s = d3.selectAll('g');
s = s.remove();
set_vars();
drawGraphic();
}, 100);
}
but it only resizes content if I increase/decrease the browser window.
From now on, thank you!