Browse Source

feat(ui): Remove "auto" as default width/height in charts (#34067)

"auto" is not a valid value for svg width/height.
Billy Vong 2 years ago
parent
commit
b70ef136c6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      static/app/components/charts/baseChart.tsx

+ 2 - 2
static/app/components/charts/baseChart.tsx

@@ -332,7 +332,7 @@ function BaseChartUnwrapped({
 
   autoHeightResize = false,
   height = 200,
-  width = 'auto',
+  width,
   renderer = 'svg',
   notMerge = true,
   lazyUpdate = false,
@@ -534,7 +534,7 @@ function BaseChartUnwrapped({
         onEvents={eventsMap}
         style={chartStyles}
         opts={{
-          height: autoHeightResize ? 'auto' : height,
+          height: autoHeightResize ? undefined : height,
           width,
           renderer,
           devicePixelRatio,