diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-03 10:32:12 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-03 10:32:12 -0500 |
| commit | a6e5fdd00fa4f8adcc67d709e95391d3ccaaaf52 (patch) | |
| tree | 1827d029a156bf817136636125fc89d3bd6837d7 /src/client/views/collections/collectionMulticolumn | |
| parent | 1b481cd441cc8bb200906b246b43e4bc5dc53b4e (diff) | |
added functionPlot. trying to make fitWidth make sense everywhere (lightbox, stacking panels with autosize columns, etc).
Diffstat (limited to 'src/client/views/collections/collectionMulticolumn')
| -rw-r--r-- | src/client/views/collections/collectionMulticolumn/CollectionMulticolumnView.tsx | 2 | ||||
| -rw-r--r-- | src/client/views/collections/collectionMulticolumn/CollectionMultirowView.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionMulticolumn/CollectionMulticolumnView.tsx b/src/client/views/collections/collectionMulticolumn/CollectionMulticolumnView.tsx index d23f3309e..0c0dbef9f 100644 --- a/src/client/views/collections/collectionMulticolumn/CollectionMulticolumnView.tsx +++ b/src/client/views/collections/collectionMulticolumn/CollectionMulticolumnView.tsx @@ -182,7 +182,7 @@ export class CollectionMulticolumnView extends CollectionSubView(MulticolumnDocu let offset = 0; for (const { layout: candidate } of this.childLayoutPairs) { if (candidate === layout) { - return this.props.ScreenToLocalTransform().translate(-offset, 0); + return this.props.ScreenToLocalTransform().translate(-offset / (this.props.scaling?.() || 1), 0); } offset += this.lookupPixels(candidate) + resizerWidth; } diff --git a/src/client/views/collections/collectionMulticolumn/CollectionMultirowView.tsx b/src/client/views/collections/collectionMulticolumn/CollectionMultirowView.tsx index 641ae6ce1..0a1000a20 100644 --- a/src/client/views/collections/collectionMulticolumn/CollectionMultirowView.tsx +++ b/src/client/views/collections/collectionMulticolumn/CollectionMultirowView.tsx @@ -182,7 +182,7 @@ export class CollectionMultirowView extends CollectionSubView(MultirowDocument) let offset = 0; for (const { layout: candidate } of this.childLayoutPairs) { if (candidate === layout) { - return this.props.ScreenToLocalTransform().translate(0, -offset); + return this.props.ScreenToLocalTransform().translate(0, -offset / (this.props.scaling?.() || 1)); } offset += this.lookupPixels(candidate) + resizerHeight; } |
