craftcms / craftcms/cms

For multiple instances of charts, only one will be responsive.

Open
#4,457 0 comments 0 reactions 1 assignee View on GitHub

@benjamindavid is already working on this.

Since Jun 28, 2019.

Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

If you have multiple charts anywhere, only one of them resizes on window resize. I found this issue when adding 2 charts on same page within my plugin. Whichever chart is first in the dom would get the resizing, the second doesn't resize.

Steps to reproduce
  1. On your dashboard create 2 New Users widgets
  2. Start resizing your browser, you will notice that only the last chart is responsive, the first one doesn't resize and gets hidden behind container.
Additional info
  • Craft version: 3.1.32.1
  • PHP version: 7.3.6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.