I implemented a simple Chart for visualisation und wanted to styling it's height und width using TailwindCSS like this:
<div class="w-1/2 md:w-full h-full bg-gray-900">
<canvas class="w-full h-full" id="myChart" />
</div>
Chart Options:
options: {
responsive: true,
aspectRatio: 1
}
While most of the time the outcome looks good, on some aspect ratios I get weird scalings:

Here the graph should be much smaller, since the Div is getting scaled down.:
However, when I add height="100%" to the canvas HTML tag, the scaling works just fine:
<div class="w-1/2 md:w-full h-full bg-gray-900">
<canvas height="100%" class="w-full h-full" id="myChart" />
</div>
Did I misuse the TailwindCSS operators (h-full), which has the same height=100% value, or am I missing something obvious?

