angular-plotly icon indicating copy to clipboard operation
angular-plotly copied to clipboard

Resize issue

Open jose-zama opened this issue 9 years ago • 0 comments

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!

jose-zama avatar Oct 31 '16 18:10 jose-zama