charts icon indicating copy to clipboard operation
charts copied to clipboard

Wrong width in scrollable elements

Open dnnnvx opened this issue 4 years ago • 2 comments

Expected Behaviour

Fit the actual width without considering the scrollbar width in a scrollable element

Actual Behaviour

The SVG goes above the scrollbar, making the element horizontally scrollable. The width is calculated and added to the tag style, in this example is: <svg class="frappe-chart chart" width="843" height="300"> When the parent width in this case is 833.

Steps to Reproduce:

<div class="flex flex-col overflow-y-auto">
  <div appCharts [options]="chartOptions"></div>
</div>

NOTE: Add a GIF/Screenshot if required. image

Frappé Charts version: 1.3.0

dnnnvx avatar Mar 24 '20 14:03 dnnnvx

Expected Behaviour

Fit the actual width without considering the scrollbar width in a scrollable element

Actual Behaviour

The SVG goes above the scrollbar, making the element horizontally scrollable. The width is calculated and added to the tag style, in this example is: <svg class="frappe-chart chart" width="843" height="300"> When the parent width in this case is 833.

Steps to Reproduce:

<div class="flex flex-col overflow-y-auto">
  <div appCharts [options]="chartOptions"></div>
</div>

NOTE: Add a GIF/Screenshot if required. image

Frappé Charts version: 1.3.0

same here, you solved it?

FalaiTio avatar Dec 04 '20 14:12 FalaiTio

Nope, sorry. I've used another charts library

dnnnvx avatar Dec 04 '20 14:12 dnnnvx