diff --git a/src/components/portrait-view.tsx b/src/components/portrait-view.tsx
index e4627d5..8ddc499 100644
--- a/src/components/portrait-view.tsx
+++ b/src/components/portrait-view.tsx
@@ -29,7 +29,7 @@ export const PortraitViewRow = (props: PortraitViewRowProps) => {
}
- {mapCellsFromValues(collectionId, `parent-row-${index}`, values)}
+ {mapCellsFromValues(collectionId, `parent-row-${index}`, values, isParent)}
@@ -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`;
}