diff options
| author | bob <bcz@cs.brown.edu> | 2019-07-17 12:49:15 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-07-17 12:49:15 -0400 |
| commit | 0620688e08a771b0b5b8e00bdf606e3d17c801a5 (patch) | |
| tree | 9df8991c7ddcb9475d3ffcb5f65542b11ad4e413 /src/client/views/collections/CollectionPDFView.tsx | |
| parent | de6e2427cf5eed2805432a37b5284a4c8b934e62 (diff) | |
| parent | 9a4b4e9367d9d1fd245450db62124f0e530e4175 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/collections/CollectionPDFView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionPDFView.tsx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/client/views/collections/CollectionPDFView.tsx b/src/client/views/collections/CollectionPDFView.tsx index 8ab360984..9074854d6 100644 --- a/src/client/views/collections/CollectionPDFView.tsx +++ b/src/client/views/collections/CollectionPDFView.tsx @@ -1,6 +1,6 @@ import { action, IReactionDisposer, observable, reaction } from "mobx"; import { observer } from "mobx-react"; -import { WidthSym } from "../../../new_fields/Doc"; +import { WidthSym, HeightSym } from "../../../new_fields/Doc"; import { Id } from "../../../new_fields/FieldSymbols"; import { NumCast } from "../../../new_fields/Types"; import { emptyFunction } from "../../../Utils"; @@ -29,15 +29,7 @@ export class CollectionPDFView extends React.Component<FieldViewProps> { this._reactionDisposer = reaction( () => NumCast(this.props.Document.scrollY), () => { - // let transform = this.props.ScreenToLocalTransform(); - // if (this._buttonTray.current) { - // console.log(this._buttonTray.current.offsetHeight); - // console.log(NumCast(this.props.Document.scrollY)); - let scale = this.nativeWidth() / this.props.Document[WidthSym](); this.props.Document.panY = NumCast(this.props.Document.scrollY); - // console.log(scale); - // } - // console.log(this.props.Document[HeightSym]()); }, { fireImmediately: true } ); |
