Skip to content

Resize issue #18

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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