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 Dec 15, 2023
1 parent 50b4e2b commit 2398551
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

1 comment on commit 2398551

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.