diff options
| author | bobzel <zzzman@gmail.com> | 2023-09-13 12:29:19 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-09-13 12:29:19 -0400 |
| commit | 542f641ccd026c99912e864b47186f189410b280 (patch) | |
| tree | 73dd2210af18b689dfa21de0092b1b0a99dcab4b /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | |
| parent | d6172adc218cc8ebb3a545cd6cdf8cc4f2a36e98 (diff) | |
fixed region highlight when dragging minimap
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 91669cf70..3a4719854 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -156,7 +156,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection ? { x: cb[0], y: cb[1], r: cb[2], b: cb[3] } : this.props.contentBounds?.() ?? aggregateBounds( - this._layoutElements.filter(e => e.bounds && e.bounds.width && !e.bounds.z).map(e => e.bounds!), + this._layoutElements.filter(e => e.bounds?.width && !e.bounds.z).map(e => e.bounds!), NumCast(this.layoutDoc._xPadding, 10), NumCast(this.layoutDoc._yPadding, 10) ); |
