diff options
| author | bobzel <zzzman@gmail.com> | 2020-04-06 14:11:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-06 14:11:17 -0400 |
| commit | b3ab8f6413b9bd8b01c23cc8fdb6a6fc61403490 (patch) | |
| tree | a0d40f5b8dc55f92454a9bf5fa071e9eb4f9f719 /src/client/views/RecommendationsBox.tsx | |
| parent | 43b241a496d446e7b613ad65fb016405009dd532 (diff) | |
| parent | 490584f292e1da100bbb26ea3be1d06b5f63232d (diff) | |
Merge pull request #351 from browngraphicslab/nativeWidthProps
Native width props
Diffstat (limited to 'src/client/views/RecommendationsBox.tsx')
| -rw-r--r-- | src/client/views/RecommendationsBox.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/RecommendationsBox.tsx b/src/client/views/RecommendationsBox.tsx index ddeda28ac..e66fd3eb4 100644 --- a/src/client/views/RecommendationsBox.tsx +++ b/src/client/views/RecommendationsBox.tsx @@ -6,7 +6,7 @@ import "./RecommendationsBox.scss"; import { Doc, DocListCast, WidthSym, HeightSym } from "../../new_fields/Doc"; import { DocumentIcon } from "./nodes/DocumentIcon"; import { StrCast, NumCast } from "../../new_fields/Types"; -import { returnFalse, emptyFunction, returnEmptyString, returnOne, emptyPath } from "../../Utils"; +import { returnFalse, emptyFunction, returnEmptyString, returnOne, emptyPath, returnZero } from "../../Utils"; import { Transform } from "../util/Transform"; import { ObjectField } from "../../new_fields/ObjectField"; import { DocumentView } from "./nodes/DocumentView"; @@ -73,6 +73,8 @@ export class RecommendationsBox extends React.Component<FieldViewProps> { addDocTab={returnFalse} pinToPres={returnFalse} renderDepth={1} + NativeHeight={returnZero} + NativeWidth={returnZero} PanelWidth={returnXDimension} PanelHeight={returnYDimension} focus={emptyFunction} |
