diff options
| author | bobzel <zzzman@gmail.com> | 2025-06-23 13:26:59 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-06-23 13:26:59 -0400 |
| commit | 35bd9e51f7cef551382025a5459d68eddd8f028b (patch) | |
| tree | 8edab8e8e283d06bdeba632959fd51e1488c4af5 /src/client/views/collections/CollectionStackingViewFieldColumn.tsx | |
| parent | e7a96fa043cfc9c3c426e09bbef42c8df88a45f6 (diff) | |
fixed invalidations to not trigger creating new refs when ref= was assigned to an anonymous function. fixed scribble erase to not delete everything it overlaps, just things it intersects with or contains. fixed ink to have a Math mode and fixed math recognition myscript calls.
Diffstat (limited to 'src/client/views/collections/CollectionStackingViewFieldColumn.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionStackingViewFieldColumn.tsx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx index 8c535534a..b5efa7a72 100644 --- a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx +++ b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx @@ -304,6 +304,12 @@ export class CollectionStackingViewFieldColumn extends ObservableReactComponent< ContextMenu.Instance.displayMenu(pt[0], pt[1], undefined, true); }; + setRef = (r: HTMLDivElement | null) => { + if (this._headerRef && this._props.colHeaderRefs.includes(this._headerRef)) this._props.colHeaderRefs.splice(this._props.colStackRefs.indexOf(this._headerRef), 1); + r && this._props.colHeaderRefs.push(r); + this._headerRef = r; + }; + @computed get innards() { TraceMobx(); const key = this._props.pivotField; @@ -315,11 +321,7 @@ export class CollectionStackingViewFieldColumn extends ObservableReactComponent< <div key={heading} className="collectionStackingView-sectionHeader" - ref={r => { - if (this._headerRef && this._props.colHeaderRefs.includes(this._headerRef)) this._props.colHeaderRefs.splice(this._props.colStackRefs.indexOf(this._headerRef), 1); - r && this._props.colHeaderRefs.push(r); - this._headerRef = r; - }} + ref={this.setRef} style={{ marginTop: 0, marginBottom: this._props.gridGap, |
