diff options
| author | bobzel <zzzman@gmail.com> | 2020-12-11 02:07:40 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-12-11 02:07:40 -0500 |
| commit | 495b60322b56d50f90398757c3a3c1f56da66cdc (patch) | |
| tree | b6d9ea395e9682e764b53348d2365b6a8ff38f90 /src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx | |
| parent | f9f7e0aac784d3b32c5adab04d8ec5d7807b0390 (diff) | |
cleaning up more doumentViewProps. reduced use of treeViewDoc prop. added hideTitle. fixed background shadow on isButton documents.
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx index c81bd068c..473363292 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormLinkView.tsx @@ -103,7 +103,7 @@ export class CollectionFreeFormLinkView extends React.Component<CollectionFreeFo const top = rect.top, height = rect.height; var el = el.parentNode; while (el && el !== document.body) { - rect = el?.getBoundingClientRect(); + rect = el.getBoundingClientRect?.(); if (rect?.width) { if (top <= rect.bottom === false && getComputedStyle(el).overflow === "hidden") return rect.bottom; // Check if the element is out of view due to a container scrolling |
