aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackingView.tsx
diff options
context:
space:
mode:
authoreeng5 <eleanor_eng@brown.edu>2019-09-24 18:09:31 -0400
committereeng5 <eleanor_eng@brown.edu>2019-09-24 18:09:31 -0400
commit2e6c8efbcea67d345023db679de15f294a792dc5 (patch)
treea57277c4384a114bc2457b4c4612ec6199744afc /src/client/views/collections/CollectionStackingView.tsx
parentd9b217a3a8f963096e0a1b8658a31b9df9a5f82c (diff)
Initial menu for header capabilities
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index 3fec7a85f..9c6d5c52a 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -25,8 +25,6 @@ import { ContextMenuProps } from "../ContextMenuItem";
import { ScriptBox } from "../ScriptBox";
import { CollectionMasonryViewFieldRow } from "./CollectionMasonryViewFieldRow";
-// let _height: number = 0;
-
@observer
export class CollectionStackingView extends CollectionSubView(doc => doc) {
_masonryGridRef: HTMLDivElement | null = null;
@@ -103,8 +101,6 @@ export class CollectionStackingView extends CollectionSubView(doc => doc) {
args[1] instanceof Doc &&
this.childDocs.map(async doc => !Doc.AreProtosEqual(args[1] as Doc, (await doc).layout as Doc) && Doc.ApplyTemplateTo(args[1] as Doc, (await doc), undefined));
});
-
-
// is there any reason this needs to exist? -syip. yes, it handles autoHeight for stacking and masonry views -eeng
this._heightDisposer = reaction(() => {
if (BoolCast(this.props.Document.autoHeight)) {
@@ -114,9 +110,6 @@ export class CollectionStackingView extends CollectionSubView(doc => doc) {
(this.Sections.size ? 50 : 0) + s.reduce((height, d, i) => height + this.childDocHeight(d) + (i === s.length - 1 ? this.yMargin : this.gridGap), this.yMargin)), 0);
} else {
let sum = Array.from(this._heightMap.values()).reduce((acc: number, curr: number) => acc += curr, 0);
- // let transformScale = this.props.ScreenToLocalTransform().Scale;
- // let trueHeight = 30 * transformScale;
- // sum += trueHeight;
sum += 30;
return this.props.ContentScaling() * (sum + (this.Sections.size ? 50 : 0));
}