question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

responsive behavior not working

See original GitHub issue

I’m using two line charts along side in a bootstrap row, each inside a col.

Expected Behavior

It should snap back to normal size when the browser maximizes

Current Behavior

If the browser window is narrowed the canvas fills the row but when you maximize the window it doesn’t go back to how it was

Steps to Reproduce (for bugs)

  1. put two canvases in to cols:
<div class="row">
        <div class="col"><canvas id="language-chart"></canvas></div>
        <div class="col"><canvas id="subject-chart"></canvas></div>
</div>
  1. initialize 2 line charts like the docs tells you to
  2. load the page in a maximized browser, everything’s normal
  3. change the width of the browser to about the tablet width
  4. go back to maximized

Environment

  • Chart.js version: 2.7.2
  • Browser name and version: Opera 51, Firefox latest

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
simonbrunelcommented, Apr 12, 2018

That’s an issue with flexbox (your .col class), you need to explicitly set .col { min-height: 0 }, see #4156 (comment) and this fiddle.

0reactions
mokhoshcommented, Apr 11, 2018

well, that’s really good. can we do something about windows 10 as well?

Read more comments on GitHub >

github_iconTop Results From Across the Web

JQuery DataTable responsive behavior not working for table ...
I have a Bootstrap 4 accordion with a table inside each section of it. The tables have the JQuery DataTables extension and are...
Read more >
Datatables responsive behavior is not working with Flask.
I have been trying to get the responsive pages to work with Flask. I've loaded every .css & .js I can find including...
Read more >
Responding to Non-Responsive Behavior: Basic Practices ...
Be taught and encouraged to use more socially appropriate alternative behaviors that “work” as effectively, efficiently, and relevantly as ...
Read more >
Create responsive layouts in canvas apps - Power Apps
To achieve responsive layout, you adjust some settings and write expressions throughout your app. Disable Scale to fit. You can configure each ...
Read more >
Solving Responsive Web Design Challenges With Elementor
In this tutorial, we examine several responsive web design challenges and ... the technical problems and adjust your ideas accordingly.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found