Skip to content

HighChart should be updated on afterlayout #5

Description

@vvworm

Hi Sir,

Thanks for your component.

But in my case there're some problems. I put Char.us.HighChart in the border layouted container. It won't fit the size it should be, even the browser's window has resized.

I change some code in Char.us.HighChart from line 296.

from

      if(this.ownerCt)
        this.ownerCt.on('render', this.update, this);
    } else {
      if(this.ownerCt)
        this.ownerCt.un('render', this.update, this);

to

if(this.ownerCt)
        this.ownerCt.on('afterlayout', this.update, this);
    } else {
      if(this.ownerCt)
        this.ownerCt.un('afterlayout', this.update, this);

Then it works fine.
I hope those code are helpful :D

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