Skip to content

Commit

Permalink
fix: top/bottom y semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed May 16, 2023
1 parent 6049842 commit 5d275b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/roadmap/NewRoadmap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ function NewRoadmap () {
const binPackedGroups: BinPackedGroup[] = useMemo(() => {
let leftMostX = Infinity
let rightMostX = -Infinity
let topMostY = -Infinity
let bottomMostY = 40
let topMostY = 40
let bottomMostY = -Infinity
const newGroups: BinPackedGroup[] = []
const shouldAddYMinBuffer = issuesGroupedState.length > 1
issuesGroupedState.forEach((issueGroup) => {
Expand All @@ -220,7 +220,7 @@ function NewRoadmap () {
height: 80,
ySpacing: 5,
xSpacing: 0,
yMin: bottomMostY + (shouldAddYMinBuffer ? titlePadding : 0)
yMin: topMostY + (shouldAddYMinBuffer ? titlePadding : 0)
})

leftMostX = Math.min(leftMostX, stats.left)
Expand Down

0 comments on commit 5d275b3

Please sign in to comment.