diff options
| author | bobzel <zzzman@gmail.com> | 2024-03-01 08:23:06 -0500 | 
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-03-01 08:23:06 -0500 | 
| commit | 25474b83f908732b2618cb7110f1e410030f9280 (patch) | |
| tree | a942453765eb876ffaa3899d623fa77e13a196b4 /src/client/views/nodes/formattedText/DashDocView.tsx | |
| parent | 4e837a73f5fae06368416f99c047d78f6b94565b (diff) | |
| parent | 3179048be75fb7662fc472249798b2d103dc5544 (diff) | |
Merge branch 'master' into info-ui-observable
Diffstat (limited to 'src/client/views/nodes/formattedText/DashDocView.tsx')
| -rw-r--r-- | src/client/views/nodes/formattedText/DashDocView.tsx | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/client/views/nodes/formattedText/DashDocView.tsx b/src/client/views/nodes/formattedText/DashDocView.tsx index 6a2cd359c..7335c9286 100644 --- a/src/client/views/nodes/formattedText/DashDocView.tsx +++ b/src/client/views/nodes/formattedText/DashDocView.tsx @@ -11,7 +11,8 @@ import { DocServer } from '../../../DocServer';  import { Docs, DocUtils } from '../../../documents/Documents';  import { Transform } from '../../../util/Transform';  import { ObservableReactComponent } from '../../ObservableReactComponent'; -import { DocFocusOptions, DocumentView } from '../DocumentView'; +import { DocumentView } from '../DocumentView'; +import { FocusViewOptions } from '../FieldView';  import { FormattedTextBox } from './FormattedTextBox';  var horizPadding = 3; // horizontal padding to container to allow cursor to show up on either side. @@ -159,7 +160,7 @@ export class DashDocViewInternal extends ObservableReactComponent<IDashDocViewIn          const { scale, translateX, translateY } = Utils.GetScreenTransform(this._spanRef.current);          return new Transform(-translateX, -translateY, 1).scale(1 / scale);      }; -    outerFocus = (target: Doc, options: DocFocusOptions) => this._textBox.focus(target, options); // ideally, this would scroll to show the focus target +    outerFocus = (target: Doc, options: FocusViewOptions) => this._textBox.focus(target, options); // ideally, this would scroll to show the focus target      onKeyDown = (e: any) => {          e.stopPropagation(); @@ -207,7 +208,7 @@ export class DashDocViewInternal extends ObservableReactComponent<IDashDocViewIn                      isDocumentActive={returnFalse}                      isContentActive={this.isContentActive}                      styleProvider={this._textBox._props.styleProvider} -                    docViewPath={this._textBox._props.docViewPath} +                    containerViewPath={this._textBox.DocumentView?.().docViewPath}                      ScreenToLocalTransform={this.getDocTransform}                      addDocTab={this._textBox._props.addDocTab}                      pinToPres={returnFalse} @@ -216,7 +217,6 @@ export class DashDocViewInternal extends ObservableReactComponent<IDashDocViewIn                      PanelHeight={this._dashDoc[Height]}                      focus={this.outerFocus}                      whenChildContentsActiveChanged={this._props.tbox.whenChildContentsActiveChanged} -                    bringToFront={emptyFunction}                      dontRegisterView={false}                      childFilters={this._props.tbox?._props.childFilters}                      childFiltersByRanges={this._props.tbox?._props.childFiltersByRanges} | 
