Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Responsive resizing does not work sometimes ( hidden Iframe bug) #3521

@freebees

Description

@freebees

chart.js Version: 2.3.0

Browsers: Chrome (51 fnd other), Firefox and other.

When we use ChartJS whis gridstack.js and bootstrap, sometimes we have an error whis hiddenIframe resizing. Sometimes resizing does not work.

What about replace this:

(hiddenIframe.contentWindow || hiddenIframe).onresize = function() { if (callback) { return callback(); } };

on this:

(window).onresize = function() { if (callback) { return callback(); } };
Its line 5776 chart.js

When we use window everithyng work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions