diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-20 14:25:00 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-20 14:25:00 -0400 |
| commit | a8e9d8baf117868e9498b56e2c3abc9ab17a32f3 (patch) | |
| tree | 9ab4a7c175adf9df6fe30291c22ae31a1898abf7 /src/client/views/search | |
| parent | aa626240bff72456dccc7f91e433135e393cb161 (diff) | |
changed sidebar buttons to store references to the panels the bring up.
Diffstat (limited to 'src/client/views/search')
| -rw-r--r-- | src/client/views/search/SearchBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index 1b5f5c861..ed1dc6de6 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -522,7 +522,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc //this.gotoDocument(this.childDocs.indexOf(doc), NumCasst(this.layoutDoc._itemIndex)); } returnHeight = () => 31 + 31 * 6; - returnLength = () => 51 + 205 * Cast(this.props.Document._schemaHeaders, listSpec(SchemaHeaderField), []).length; + returnLength = () => Math.min(window.innerWidth, 51 + 205 * Cast(this.props.Document._schemaHeaders, listSpec(SchemaHeaderField), []).length); @action changeSearchScope = (scope: string) => { |
