diff options
| author | kimdahey <claire_kim1@brown.edu> | 2019-10-02 17:21:38 -0400 |
|---|---|---|
| committer | kimdahey <claire_kim1@brown.edu> | 2019-10-02 17:21:38 -0400 |
| commit | 49d90a9a2b1d799a3ffdddf8ab45dc0d5c4fdb5b (patch) | |
| tree | 8ce177e1cdc399352bba50b5564e75b64b6658a8 /src/client/views/nodes/IconBox.tsx | |
| parent | a8f14c501cf676f6a2697b73d7f2a162d4100a9e (diff) | |
| parent | a19210e7db3e625c0bfe38b4f13b5312cc0c6e53 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into webcam_mohammad
Diffstat (limited to 'src/client/views/nodes/IconBox.tsx')
| -rw-r--r-- | src/client/views/nodes/IconBox.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/IconBox.tsx b/src/client/views/nodes/IconBox.tsx index 63a504d1a..f3adade58 100644 --- a/src/client/views/nodes/IconBox.tsx +++ b/src/client/views/nodes/IconBox.tsx @@ -77,9 +77,9 @@ export class IconBox extends React.Component<FieldViewProps> { <div className="iconBox-container" onContextMenu={this.specificContextMenu}> {this.minimizedIcon} <Measure offset onResize={(r) => runInAction(() => { - if (r.offset!.width || BoolCast(this.props.Document.hideLabel)) { - this.props.Document.nativeWidth = (r.offset!.width + Number(MINIMIZED_ICON_SIZE)); - if (this.props.Document.height === Number(MINIMIZED_ICON_SIZE)) this.props.Document.width = this.props.Document.nativeWidth; + if (r.offset!.width || this.props.Document.hideLabel) { + this.props.Document.iconWidth = (r.offset!.width + Number(MINIMIZED_ICON_SIZE)); + if (this.props.Document.height === Number(MINIMIZED_ICON_SIZE)) this.props.Document.width = this.props.Document.iconWidth; } })}> {({ measureRef }) => |
