Fix runaway legend (#13005)

pull/13006/head
alexpaxton 2019-03-28 17:49:02 -07:00 committed by GitHub
parent 040626dff6
commit ef4c49525b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -42,7 +42,10 @@ class Legend extends PureComponent<Props> {
return createPortal(
<div className="legend" ref={this.legendRef}>
<div className="legend--time">{this.time}</div>
<DapperScrollbars style={{maxHeight: '120px'}} autoHide={true}>
<DapperScrollbars
style={{maxHeight: '120px', maxWidth: '500px'}}
autoHide={true}
>
<div className="legend--columns">
{this.columns.map(({name, isNumeric, rows}, i) => (
<div