patternfly-3 icon indicating copy to clipboard operation
patternfly-3 copied to clipboard

BarChart overlapping Bootstrap column in Listview

Open jamesdecourcy opened this issue 7 years ago • 2 comments

I'm trying to put a bar chart in a PatternFly ListView using Bootstrap columns. The problem I'm having is that the Bar chart does not seem to respect the containing column (col-md-3) and overlaps its neighbouring column (col-md-9).

capture1

However, as soon as you resize the browser the bar chart resizes itself correctly.

capture2

Here is a Codepen which shows the issue. https://codepen.io/james-de-courcy/pen/ZVKLLq (Click "Event One")

jamesdecourcy avatar Dec 24 '18 11:12 jamesdecourcy

C3 sets the width/height of the chart based on its parent's size unless you specify the size in the chart config settings. Since the expansion area is hidden, it must be looking upwards until it finds a shown component. If you can set a size.width value on the config rather than using row/column it would resolve the issue. If you are set on using bootstrap row/col, then you may need to trigger a resize event when the item is expanded.

jeff-phillips-18 avatar Jan 02 '19 14:01 jeff-phillips-18

@jamesdecourcy hopefully Jeff's explanation helped. I'm going to close this issue, reach out with any other issues.

LHinson avatar Aug 08 '19 20:08 LHinson