Skip to content

Commit

Permalink
Merge pull request #914 from vegaprotocol/4809-chart-depth-flicker-on…
Browse files Browse the repository at this point in the history
…-load

feat: change depth chart default size to 0 to avoid resize on load
  • Loading branch information
MadalinaRaicu committed Oct 3, 2023
2 parents 4810729 + 25f79d5 commit 165a480
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/feature/depth-chart/depth-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ export const DepthChart = forwardRef(

const {
ref: resizeOberverRef,
width = 300,
height = 300,
width = 0,
height = 0,
devicePixelContentBoxSizeInlineSize,
devicePixelContentBoxSizeBlockSize,
} = useThrottledResizeObserver<HTMLDivElement>(50);
Expand All @@ -111,8 +111,8 @@ export const DepthChart = forwardRef(
chartView: contentsRef.current,
axisView: uiRef.current,
resolution: window.devicePixelRatio,
width: 300,
height: 300,
width: 0,
height: 0,
priceFormat,
volumeFormat,
colors,
Expand Down

0 comments on commit 165a480

Please sign in to comment.