diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-02-02 03:07:51 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-02-02 03:07:51 -0500 |
commit | 9bfc576de79b209c418b3902cbd230f6e3f73d2c (patch) | |
tree | d39342e7aae25c85f6c4fff4ef95b5ff3f2615c2 | |
parent | 7c487402dab2bbffe9e72c3c5a60349d351f81fe (diff) |
pivot layout tweaks
-rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx index 2c694c329..1dc09b517 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormLayoutEngines.tsx @@ -98,7 +98,7 @@ export function computePivotLayout( } docMap.set(doc, { x: x + xCount * pivotAxisWidth * expander + (pivotAxisWidth - wid) / 2 + (val.length < numCols ? (numCols - val.length) * pivotAxisWidth / 2 : 0), - y: -y, + y: -y + (pivotAxisWidth - hgt) / 2, width: wid, height: hgt }); @@ -182,7 +182,7 @@ export function computeTimelineLayout( hgt = pivotAxisWidth; wid = layoutDoc._nativeHeight ? (NumCast(layoutDoc._nativeWidth) / NumCast(layoutDoc._nativeHeight)) * pivotAxisWidth : pivotAxisWidth; } - docMap.set(doc, { x: x, y: - Math.sqrt(stack) * pivotAxisWidth / 2 - pivotAxisWidth, width: wid, height: hgt }); + docMap.set(doc, { x: x, y: - Math.sqrt(stack) * pivotAxisWidth / 2 - pivotAxisWidth + (pivotAxisWidth - hgt) / 2, width: wid, height: hgt }); stacking[stack] = x + pivotAxisWidth; }); }); |