Fix Kapacitor rule graph display

pull/10616/head
Jared Scheib 2017-02-24 12:06:47 -08:00
parent cd2b7c9d3d
commit 6d4df1f45b
2 changed files with 5 additions and 2 deletions

View File

@ -174,7 +174,7 @@ export default React.createClass({
render() {
return (
<div ref="self">
<div ref="self" style={{height: '100%'}}>
<div ref="graphContainer" style={this.props.containerStyle} />
<div className="container--dygraph-legend" ref="legendContainer" />
<div className="graph-vertical-marker" ref="graphVerticalMarker" />

View File

@ -104,7 +104,10 @@ export default React.createClass({
}
return (
<div className={classNames({"graph--hasYLabel": !!(options.ylabel || options.y2label)})}>
<div
className={classNames({"graph--hasYLabel": !!(options.ylabel || options.y2label)})}
style={{height: '100%'}}
>
{isRefreshing ? this.renderSpinner() : null}
<Dygraph
containerStyle={{width: '100%', height: '100%'}}