diff options
author | bobzel <zzzman@gmail.com> | 2024-07-02 17:00:12 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-07-02 17:00:12 -0400 |
commit | f33e6c9e191092e6050f980892b4404ff0d0a1f2 (patch) | |
tree | e31f11b89592674825c5aa7f2e959e797cc4e130 | |
parent | 22ef5658b825281f5dd51e3c51a62c3d53756dc0 (diff) |
fixed displaying marquee groups when Bounds isn't set.
-rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index 23cf487ec..5aff3ed6f 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -375,8 +375,8 @@ export class MarqueeView extends ObservableReactComponent<SubCollectionViewProps return doc; })(Doc.MakeCopy(Doc.UserDoc().emptyCollection as Doc, true)); newCollection.isSystem = undefined; - newCollection._width = this.Bounds.width; - newCollection._height = this.Bounds.height; + newCollection._width = this.Bounds.width || 1; // if width/height are unset/0, then groups won't autoexpand to contain their children + newCollection._height = this.Bounds.height || 1; newCollection._dragWhenActive = makeGroup; newCollection.x = this.Bounds.left; newCollection.y = this.Bounds.top; |