aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
-rw-r--r--src/client/views/PropertiesView.tsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index 499d8ff0c..128256733 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -900,10 +900,17 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
</div>;
}
+ /**
+ * Checks if a currentFilter (FilterDoc) exists on the current collection (if the Properties Panel + Filters submenu are open).
+ * If it doesn't exist, it creates it.
+ */
checkFilterDoc() {
if (this.filterDoc.type === DocumentType.COL && !this.filterDoc.currentFilter) CurrentUserUtils.setupFilterDocs(this.filterDoc);
}
+ /**
+ * Creates a new currentFilter for this.filterDoc,
+ */
createNewFilterDoc = () => {
const temp = this.filterDoc._docFilters;
this.filterDoc._docFilters = new List<string>();
@@ -946,7 +953,7 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
removeDocument={returnFalse}
ScreenToLocalTransform={this.getTransform}
PanelWidth={this.docWidth}
- PanelHeight={this.docHeight}
+ PanelHeight={() => this.docHeight}
renderDepth={0}
scriptContext={this.filterDoc.currentFilter as Doc}
focus={emptyFunction}