diff options
author | geireann <60007097+geireann@users.noreply.github.com> | 2020-06-08 14:06:02 +0800 |
---|---|---|
committer | geireann <60007097+geireann@users.noreply.github.com> | 2020-06-08 14:06:02 +0800 |
commit | 673be18526a5591b9021993fe4e9421e6373017c (patch) | |
tree | 4b403c7760f8dfdfb4891842c81492da5c9242ec | |
parent | 0bd7f4f85be56de4326f0671453fc5e5e917a5d0 (diff) |
updated window height
-rw-r--r-- | src/mobile/MobileInterface.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx index 6b75ce07d..f3fa7de30 100644 --- a/src/mobile/MobileInterface.tsx +++ b/src/mobile/MobileInterface.tsx @@ -1250,7 +1250,6 @@ export class MobileInterface extends React.Component { pinToPres={emptyFunction} rootSelected={returnFalse} removeDocument={undefined} - onClick={undefined} ScreenToLocalTransform={Transform.Identity} ContentScaling={returnOne} NativeHeight={returnZero} @@ -1295,7 +1294,6 @@ export class MobileInterface extends React.Component { bringToFront={emptyFunction} ContainingCollectionView={undefined} ContainingCollectionDoc={undefined} - // mobile={true} /> </div> ); @@ -1303,12 +1301,10 @@ export class MobileInterface extends React.Component { } } - returnWidth = () => 2000; - returnHeight = () => 2000; + returnWidth = () => window.innerWidth; + returnHeight = () => (window.innerHeight - 300); handleClick(doc: Doc) { - console.log(screen.height) - console.log(screen.width) let children = DocListCast(doc.data); if (doc.type !== "collection") { this._parents.push(this._activeDoc); |