Fixed network page server specific player charts drawing with wrong width

This commit is contained in:
Rsl1122 2017-11-25 17:42:30 +02:00
parent 1c6375fde7
commit 057cb3b9b3
2 changed files with 7 additions and 7 deletions

View File

@ -364,7 +364,7 @@ public class HtmlStructure {
"<div class=\"panel panel-default\">" +
"<div class=\"panel-heading\">" +
"<div class=\"row\">" +
"<div id=\"playerChart" + id + "\" style=\"width: 100%; height: 200px;\"></div>" +
"<div id=\"playerChart" + id + "\" style=\"width: 100%; height: 300px;\"></div>" +
"</div></div>" +
"<div class=\"panel-body\">" +
"<div class=\"row\">" +
@ -391,12 +391,12 @@ public class HtmlStructure {
"color: '${playersGraphColor}'," +
"tooltip: {" +
"valueDecimals: 0" +
"}" +
"};" +
"}};" +
"</script>" +
"<script>$(function () {" +
"playersChartNoNav(playerChart" + id + ", playersOnlineSeries" + id +
");})</script>";
"<script>$(function () {setTimeout(" +
"function() {" +
"playersChartNoNav(playerChart" + id + ", playersOnlineSeries" + id + ");}, 1000);" +
"})</script>";
}
public static String parseOfflineServerContainer(String oldContent) {

View File

@ -573,7 +573,7 @@
</div>
</div>
<div class="body">
<div id="healthGauge" class="dashboard-donut-chart"></div>
<div id="healthGauge" style="height: 300px; width: 100%;"></div>
</div>
</div>
</div>