Skip to content

Resize issue #18

@jose-zama

Description

@jose-zama

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions