aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/MainView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-10-15 16:25:10 -0400
committerbob <bcz@cs.brown.edu>2019-10-15 16:25:10 -0400
commit33811c112c7e479813908ba10f72813954a3e289 (patch)
tree8e424501ea479d03423660c3251a1afce8c060c0 /src/client/views/MainView.tsx
parent03f86e3b7b450699073c47aa43af23d31e0765d4 (diff)
working version of inking buttons
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r--src/client/views/MainView.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx
index 4e06763a4..8035916a2 100644
--- a/src/client/views/MainView.tsx
+++ b/src/client/views/MainView.tsx
@@ -466,12 +466,12 @@ export class MainView extends React.Component {
}
_docBtnRef = React.createRef<HTMLDivElement>();
@computed get docButtons() {
- console.log("stuff = " + this.flyoutWidthFunc() + " " + this.getContentsHeight());
if (CurrentUserUtils.UserDocument.expandingButtons instanceof Doc) {
- return <div className="mainView-docButtons" ref={this._docBtnRef} style={{ left: (this._flyoutTranslate ? this.flyoutWidth : 0) + 20, height: "42px" }} >
+ return <div className="mainView-docButtons" ref={this._docBtnRef}
+ style={{ left: (this._flyoutTranslate ? this.flyoutWidth : 0) + 20, height: !CurrentUserUtils.UserDocument.expandingButtons.isExpanded ? "42px" : undefined }} >
<MainViewNotifs />
<CollectionLinearView
- Document={CurrentUserUtils.UserDocument.expandingButtons as Doc}
+ Document={CurrentUserUtils.UserDocument.expandingButtons}
DataDoc={undefined}
fieldKey={"data"}
fieldExt={""}