angular-plotly
angular-plotly copied to clipboard
Resize issue
Hi,
I am having an issue with the resize. Works in firefox but not in chrome or safari. I think that instead of watching changes on the parent div, we should watch changes on the "graph" element instead.
Updating the code to the following works:
scope.$watch(function() {
return {
'h': graph.offsetHeight,
'w': graph.offsetWidth
};
}
Cheers!