Skip to content

Commit

Permalink
Accidentally deleted some lines in the logic that made it not work pr…
Browse files Browse the repository at this point in the history
…operly
  • Loading branch information
eireland committed Oct 16, 2023
1 parent c459c65 commit 1ce3111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/portrait-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const PortraitViewRow = (props: PortraitViewRowProps) => {
</tr>
}
<tr className={`${css[getClassName(caseObj)]} parent-row`}>
{mapCellsFromValues(collectionId, `parent-row-${index}`, values)}
{mapCellsFromValues(collectionId, `parent-row-${index}`, values, isParent)}
<DroppableTableData collectionId={collectionId} style={paddingStyle}>
<DraggableTableContainer collectionId={collectionId}>
<table style={paddingStyle} className={`${css.subTable} ${css[getClassName(children[0])]}`}>
Expand Down Expand Up @@ -106,6 +106,7 @@ export const PortraitView = (props: ITableProps) => {
if (intersectionRect.top === 0) { //we're in the bottom part of the visible rect
cell.style.verticalAlign = "top";
cell.style.top = `${(visibleHeight/2) - entryRect.top - 16}px`;
} else { //we're in the top part of the visible rect
cell.style.verticalAlign = "top";
cell.style.top = `${visibleHeight/2}px`;
}
Expand Down

0 comments on commit 1ce3111

Please sign in to comment.