diff options
author | bobzel <zzzman@gmail.com> | 2020-11-03 14:30:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 14:30:18 -0500 |
commit | 662f6caf1fade18abc2a24528c3057d43da1a504 (patch) | |
tree | 87bd0d5b7e06e46b6ac04b74b105bc2dca6184b6 /src/client/views/EditableView.tsx | |
parent | eacb4733e85ada91520fe401f5c1351f7bbc38d4 (diff) | |
parent | 5372e9b221aa72f7dfa22121ce8a4d85573da8cf (diff) |
Merge pull request #925 from browngraphicslab/presentation_v1
Presentation v1
Diffstat (limited to 'src/client/views/EditableView.tsx')
-rw-r--r-- | src/client/views/EditableView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx index 9606b5a91..ed7a8265f 100644 --- a/src/client/views/EditableView.tsx +++ b/src/client/views/EditableView.tsx @@ -35,6 +35,7 @@ export interface EditableProps { sizeToContent?: boolean; maxHeight?: number; display?: string; + overflow?: string; autosuggestProps?: { resetValue: () => void; value: string, @@ -227,7 +228,7 @@ export class EditableView extends React.Component<EditableProps> { setTimeout(() => this.props.autosuggestProps?.resetValue(), 0); return this.props.contents instanceof ObjectField ? (null) : <div className={`editableView-container-editing${this.props.oneLine ? "-oneLine" : ""}`} ref={this._ref} - style={{ display: this.props.display, minHeight: "17px", whiteSpace: "nowrap", height: this.props.height || "auto", maxHeight: this.props.maxHeight }} + style={{ display: this.props.display, textOverflow: this.props.overflow, minHeight: "17px", whiteSpace: "nowrap", height: this.props.height || "auto", maxHeight: this.props.maxHeight }} onClick={this.onClick} placeholder={this.props.placeholder}> <span style={{ fontStyle: this.props.fontStyle, fontSize: this.props.fontSize }} >{ this.props.contents ? this.props.contents?.valueOf() : this.props.placeholder?.valueOf()} |