aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2021-03-18 01:33:56 -0400
committerusodhi <61431818+usodhi@users.noreply.github.com>2021-03-18 01:33:56 -0400
commit5e29ff3ea44ee885bd3a90ecbf4d9cdb11b245f6 (patch)
treee17284b449ae5635f97e52e1e07cbf75ce3f23fb
parenta8c02cba0bf96e435e062f2251890243ad8f49e0 (diff)
why won't this document from hell change height
-rw-r--r--src/client/documents/Documents.ts2
-rw-r--r--src/client/util/CurrentUserUtils.ts2
-rw-r--r--src/client/views/PropertiesView.tsx1
-rw-r--r--src/client/views/nodes/FilterBox.tsx11
4 files changed, 6 insertions, 10 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index ef6623f20..0c16d9f8f 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -167,7 +167,7 @@ export class DocumentOptions {
description?: string; // added for links
layout?: string | Doc; // default layout string for a document
contentPointerEvents?: string; // pointer events allowed for content of a document view. eg. set to "none" in menuSidebar for sharedDocs so that you can select a document, but not interact with its contents
- childLimitHeight?: number; // whether to limit the height of colleciton children. 0 - means height can be no bigger than width
+ childLimitHeight?: number; // whether to limit the height of collection children. 0 - means height can be no bigger than width
childLayoutTemplate?: Doc; // template for collection to use to render its children (see PresBox or Buxton layout in tree view)
childLayoutString?: string; // template string for collection to use to render its children
childDontRegisterViews?: boolean;
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index 157a88de7..993eba889 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -804,7 +804,7 @@ export class CurrentUserUtils {
doc.currentFilter === undefined;
if (doc.currentFilter === undefined) {
doc.currentFilter = Docs.Create.FilterDocument({
- title: "FilterDoc", _height: 20,
+ title: "FilterDoc", _height: 150,
treeViewHideTitle: true, _xMargin: 5, _yMargin: 5, _gridGap: 5, _forceActive: true, childDropAction: "none",
treeViewTruncateTitleWidth: 150, treeViewPreventOpen: false, ignoreClick: true,
_lockedPosition: true, boxShadow: "0 0", childDontRegisterViews: true, targetDropAction: "same", system: true
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index b4e15b536..1f4685bf2 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -975,6 +975,7 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
updateFilterDoc={this.updateFilterDoc}
docViewPath={returnEmptyDoclist}
layerProvider={undefined}
+ dontCenter="y"
/>
</div>
}
diff --git a/src/client/views/nodes/FilterBox.tsx b/src/client/views/nodes/FilterBox.tsx
index 2ed3dc21f..01372c284 100644
--- a/src/client/views/nodes/FilterBox.tsx
+++ b/src/client/views/nodes/FilterBox.tsx
@@ -424,7 +424,7 @@ export class FilterBox extends ViewBoxBaseComponent<FieldViewProps, FilterBoxDoc
ContainingCollectionDoc={this.props.ContainingCollectionDoc}
ContainingCollectionView={this.props.ContainingCollectionView}
PanelWidth={this.props.PanelWidth}
- PanelHeight={() => 100}
+ PanelHeight={this.props.PanelHeight}
rootSelected={this.props.rootSelected}
renderDepth={1}
dropAction={this.props.dropAction}
@@ -450,13 +450,8 @@ export class FilterBox extends ViewBoxBaseComponent<FieldViewProps, FilterBoxDoc
removeDocument={returnFalse}
addDocument={returnFalse} />
</div>
- {/* <Flyout className="filterBox-flyout" anchorPoint={anchorPoints.RIGHT_TOP} content={flyout}>
- <div className="filterBox-addWrapper">
- <div className="filterBox-addFilter"> + add a filter</div>
- </div>
- </Flyout> */}
<div className="filterBox-bottom">
- <div className="filterBox-select-matched">
+ {/* <div className="filterBox-select-matched">
<input className="filterBox-select-box" type="checkbox"
onChange={this.changeSelected} />
<div className="filterBox-select-text">select</div>
@@ -465,7 +460,7 @@ export class FilterBox extends ViewBoxBaseComponent<FieldViewProps, FilterBoxDoc
<option value="unmatched" key="unmatched">unmatched</option>
</select>
<div className="filterBox-select-text">documents</div>
- </div>
+ </div> */}
<div style={{ display: "flex" }}>
<div className="filterBox-saveWrapper">