diff options
author | bob <bcz@cs.brown.edu> | 2020-01-23 18:24:38 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-01-23 18:24:38 -0500 |
commit | c23d9ba83c87511a626bfe8d1da5dd981e311262 (patch) | |
tree | 05f156e7cefcb12ce24a242a4d16b17f0f1c3882 /src/client/util/RichTextSchema.tsx | |
parent | 0142f4e14cc8e291ee5acbae3cc4b81c95c4634a (diff) |
got rid of extension docs. changed layout-specific keys to start with "_" which flags them to be written to the current layout document
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index fe7ab31a8..d64098e5f 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -703,7 +703,7 @@ export class DashDocView { const { scale, translateX, translateY } = Utils.GetScreenTransform(this._outer); return new Transform(-translateX, -translateY, 1).scale(1 / this.contentScaling() / scale); } - contentScaling = () => NumCast(this._dashDoc!.nativeWidth) > 0 && !this._dashDoc!.ignoreAspect ? this._dashDoc![WidthSym]() / NumCast(this._dashDoc!.nativeWidth) : 1; + contentScaling = () => NumCast(this._dashDoc!._nativeWidth) > 0 && !this._dashDoc!.ignoreAspect ? this._dashDoc![WidthSym]() / NumCast(this._dashDoc!._nativeWidth) : 1; outerFocus = (target: Doc) => this._textBox.props.focus(this._textBox.props.Document); // ideally, this would scroll to show the focus target constructor(node: any, view: any, getPos: any, tbox: FormattedTextBox) { this._textBox = tbox; @@ -758,7 +758,7 @@ export class DashDocView { ReactDOM.render(<DocumentView Document={dashDoc} LibraryPath={tbox.props.LibraryPath} - fitToBox={BoolCast(dashDoc.fitToBox)} + fitToBox={BoolCast(dashDoc._fitToBox)} addDocument={returnFalse} removeDocument={removeDoc} ScreenToLocalTransform={this.getDocTransform} |