aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/CurrentUserUtils.ts
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2021-04-05 14:52:12 -0400
committerusodhi <61431818+usodhi@users.noreply.github.com>2021-04-05 14:52:12 -0400
commit3bec3189fcd3a0a1410d625c73f0e219631dbf11 (patch)
tree1239d95af05f62364ce0eb95ae277ede7695ef01 /src/client/util/CurrentUserUtils.ts
parentb04c2e43b471beedeb6aac5802d6dd4c39ccdf18 (diff)
saving
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r--src/client/util/CurrentUserUtils.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index 81627fb03..6b7cc8906 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -804,13 +804,12 @@ export class CurrentUserUtils {
}
static setupFilterDocs(doc: Doc) {
// setup Filter item
- doc.currentFilter === undefined;
if (doc.currentFilter === undefined) {
doc.currentFilter = Docs.Create.FilterDocument({
title: "FilterDoc", _height: 150,
treeViewHideTitle: true, _xMargin: 5, _yMargin: 5, _gridGap: 5, _forceActive: true, childDropAction: "none",
treeViewTruncateTitleWidth: 150, ignoreClick: true,
- _lockedPosition: true, boxShadow: "0 0", childDontRegisterViews: true, targetDropAction: "same", system: true
+ _lockedPosition: true, boxShadow: "0 0", childDontRegisterViews: true, targetDropAction: "same", system: true, _autoHeight: true, _fitWidth: true
});
const clearAll = ScriptField.MakeScript(`getProto(self).data = new List([])`);
(doc.currentFilter as Doc).contextMenuScripts = new List<ScriptField>([clearAll!]);