diff options
| author | bobzel <zzzman@gmail.com> | 2024-11-01 10:53:37 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-11-01 10:53:37 -0400 |
| commit | b6411c0c053db2b4495d0c545c491d9f18238e21 (patch) | |
| tree | be8e635b77a27d8c6beace9338b3756cb3ba6c46 /src/client/views/collections/CollectionCardDeckView.tsx | |
| parent | d234aebe441aced1b6d947653a1b36c226439103 (diff) | |
fixed resize problem where NaN is generated by scaling very narrow in a card view.
Diffstat (limited to 'src/client/views/collections/CollectionCardDeckView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionCardDeckView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionCardDeckView.tsx b/src/client/views/collections/CollectionCardDeckView.tsx index 5e6c40400..39d9fe69d 100644 --- a/src/client/views/collections/CollectionCardDeckView.tsx +++ b/src/client/views/collections/CollectionCardDeckView.tsx @@ -555,7 +555,7 @@ export class CollectionCardView extends CollectionSubView() { const dref = this._docRefs.get(doc); const { translateX, translateY, scale } = ClientUtils.GetScreenTransform(dref?.ContentDiv); - if (!scale) return new Transform(0, 0, 0); + if (!scale) return new Transform(0, 0, 1); return new Transform(-translateX + (dref?.centeringX || 0) * scale, -translateY + (dref?.centeringY || 0) * scale, 1) |
