Skip to content

Commit

Permalink
Merge pull request #1614 from akmal-deriv/b-barrier-issue
Browse files Browse the repository at this point in the history
Akmal / fix: blue barrier width
  • Loading branch information
balakrishna-deriv authored Jul 2, 2024
2 parents 82e691b + efd23dd commit 968450a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions chart_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ class _DerivChartWebAdapterState extends State<_DerivChartWebAdapter> {
);
}

app.calculateTickWidth();

return DerivChartWrapper(
app: app,
onVisibleAreaChanged: onVisibleAreaChanged,
Expand Down
2 changes: 1 addition & 1 deletion src/components/PriceLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const PriceLine = ({
if (!showBarrier) return null;

const width = priceLineWidth + 12;
const price_right_offset = (isOverlappingWithPriceLine ? width - overlappedBarrierWidth + 6 : 0) + (isMobile ? 20 : 3);
const price_right_offset = (isOverlappingWithPriceLine ? width - overlappedBarrierWidth : 0) + (isMobile ? 20 : 3);

return (
<div
Expand Down

0 comments on commit 968450a

Please sign in to comment.