Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Merge pull request #821 from ironmansoftware/814
Browse files Browse the repository at this point in the history
Fixes #814
  • Loading branch information
adamdriscoll authored May 23, 2019
2 parents 844580d + 0c53936 commit ec7eb3c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
10 changes: 5 additions & 5 deletions src/UniversalDashboard.Materialize/Components/ud-monitor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,23 +103,23 @@ export default class UdMonitor extends React.Component {
}

renderArea(data, options) {
return <Area ref={x => this.chart} data={data} options={options}/>
return <Area ref={x => this.chart = x} data={data} options={options}/>
}

renderDoughnut(data, options) {
return <Doughnut ref={x => this.chart} data={data} options={options}/>
return <Doughnut ref={x => this.chart = x} data={data} options={options}/>
}

renderBar(data, options) {
return <Bar ref={x => this.chart} data={data} options={options}/>
return <Bar ref={x => this.chart = x} data={data} options={options}/>
}

renderLine(data, options) {
return <Line ref={x => this.chart} data={data} options={options}/>
return <Line ref={x => this.chart = x} data={data} options={options}/>
}

renderRadar(data, options) {
return <Radar ref={x => this.chart} data={data} options={options}/>
return <Radar ref={x => this.chart = x} data={data} options={options}/>
}

render() {
Expand Down
23 changes: 0 additions & 23 deletions src/UniversalDashboard/Styles/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,3 @@ td {
margin-left: 10px !important;
}

.v-wrap{
height: 100% !important;
white-space: nowrap !important;
text-align: center !important;
display: block !important;
min-height: auto !important;
flex-direction: row !important;
}
.v-wrap:before{
content: "";
display: inline-block;
vertical-align: middle;
width: 0;
/* adjust for white space between pseudo element and next sibling */
margin-right: -.25em;
/* stretch line height */
height: 100vh;
}
.v-box{
display: inline-block;
vertical-align: middle;
white-space: normal;
}
25 changes: 25 additions & 0 deletions src/client/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,31 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PowerShell Universal Dashboard</title>
<style>
.v-wrap{
height: 100% !important;
white-space: nowrap !important;
text-align: center !important;
display: block !important;
min-height: auto !important;
flex-direction: row !important;
}
.v-wrap:before{
content: "";
display: inline-block;
vertical-align: middle;
width: 0;
/* adjust for white space between pseudo element and next sibling */
margin-right: -.25em;
/* stretch line height */
height: 100vh;
}
.v-box{
display: inline-block;
vertical-align: middle;
white-space: normal;
}
</style>
</head>
<body>
<div id="app" class="app"/>
Expand Down

0 comments on commit ec7eb3c

Please sign in to comment.