diff options
| author | Andy Rickert <andrew_rickert@brown.edu> | 2020-06-16 14:19:53 -0400 |
|---|---|---|
| committer | Andy Rickert <andrew_rickert@brown.edu> | 2020-06-16 14:19:53 -0400 |
| commit | da8b3384142b8b0714fb7fc35a5ca4a48ed94ed3 (patch) | |
| tree | 0243924d8155c987211e12896550f0c31e55bed1 /src/client/views/search/SearchBox.tsx | |
| parent | a0c15d84b6d5f1aff604b755ec31c66dd341b235 (diff) | |
reset
Diffstat (limited to 'src/client/views/search/SearchBox.tsx')
| -rw-r--r-- | src/client/views/search/SearchBox.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index 596a0cac7..afc3e7c8b 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -668,6 +668,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc } const highlights = Array.from([...Array.from(new Set(result[1]).values())]); let lines = new List<string>(result[2]); + result[0]._height=46; result[0].lines=lines; result[0].highlighting=highlights.join(", "); this._visibleDocuments[i] = result[0]; @@ -690,7 +691,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc const highlights = Array.from([...Array.from(new Set(result[1]).values())]); let lines = new List<string>(result[2]); - + result[0]._height=46; result[0].lines= lines; result[0].highlighting=highlights.join(", "); if(i<this._visibleDocuments.length){ @@ -724,6 +725,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc //this.bucketcount[0]+=1; const highlights = Array.from([...Array.from(new Set(result[1]).values())]); let lines = new List<string>(result[2]); + result[0]._height=46; result[0].lines= lines; result[0].highlighting=highlights.join(", "); Doc.AddDocToList(this.dataDoc, this.props.fieldKey, result[0]); @@ -755,6 +757,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc if (!this.blockedTypes.includes(StrCast(result[0].type))){ const highlights = Array.from([...Array.from(new Set(result[1]).values())]); let lines = new List<string>(result[2]); + result[0]._height=46; result[0].lines= lines; result[0].highlighting=highlights.join(", "); Doc.AddDocToList(this.dataDoc, this.props.fieldKey, result[0]); |
