horizontal bar chart increases row height on resize when maintainAspectRatio is set to false

Steps to reproduce:

  • new Chart(ctx, {type: 'horizontalBar', data})
  • maintainAspectRatio: false
  • resize your window

https://jsfiddle.net/pzx1LtqL/3/

Author: Fantashit

2 thoughts on “horizontal bar chart increases row height on resize when maintainAspectRatio is set to false

  1. I ran into this issue on 2.3.0. It occurred because the container had other items in it besides from the canvas. By putting the canvas inside its own container and setting container position:relative everything works beautifully. Example how to break it: https://jsfiddle.net/pxzzo24p/14/

Comments are closed.