diff options
| author | bobzel <zzzman@gmail.com> | 2021-09-04 00:46:41 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-09-04 00:46:41 -0400 |
| commit | 9a4bd3ca5dbe192eec20bf405a9904ef8b546de6 (patch) | |
| tree | dedb50e4979820099db02912d187ae740c59a995 /src/client/views/ComponentDecorations.tsx | |
| parent | 85345138396771a30f9d0e7a26837edc0a972bee (diff) | |
added top/left clip bounds to ink decorations
Diffstat (limited to 'src/client/views/ComponentDecorations.tsx')
| -rw-r--r-- | src/client/views/ComponentDecorations.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/ComponentDecorations.tsx b/src/client/views/ComponentDecorations.tsx index 66f81fe4f..66d1bd63d 100644 --- a/src/client/views/ComponentDecorations.tsx +++ b/src/client/views/ComponentDecorations.tsx @@ -4,11 +4,11 @@ import './ComponentDecorations.scss'; import React = require("react"); @observer -export class ComponentDecorations extends React.Component { +export class ComponentDecorations extends React.Component<{ boundsTop: number, boundsLeft: number }, { value: string }> { static Instance: ComponentDecorations; render() { const seldoc = SelectionManager.Views().lastElement(); - return seldoc?.ComponentView?.componentUI?.() ?? (null); + return seldoc?.ComponentView?.componentUI?.(this.props.boundsLeft, this.props.boundsTop) ?? (null); } }
\ No newline at end of file |
