Skip to content

Commit

Permalink
Fix negative SVG values in Graphic Context (#3673)
Browse files Browse the repository at this point in the history
  • Loading branch information
djbarnwal authored and mindspank committed Dec 18, 2023
1 parent d483a4f commit e188481
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ A container GraphicContext for the time series in a metrics dashboard.
right={50}
fontSize={11}
top={4}
width={(enableFullWidth
? workspaceWidth - paddingForFullWidth
: workspaceWidth >= MEASURE_CONFIG.breakpoint
? MEASURE_CONFIG.container.width.full
: MEASURE_CONFIG.container.width.breakpoint) -
MEASURE_CONFIG.bigNumber.widthWithChart}
width={Math.max(
enableFullWidth
? workspaceWidth - paddingForFullWidth
: workspaceWidth >= MEASURE_CONFIG.breakpoint
? MEASURE_CONFIG.container.width.full
: MEASURE_CONFIG.container.width.breakpoint,
400
) - MEASURE_CONFIG.bigNumber.widthWithChart}
xMax={end}
xMaxTweenProps={{ duration: 400 }}
xMin={start}
Expand Down

0 comments on commit e188481

Please sign in to comment.