This commit is contained in:
FangfangZhao 2018-12-17 18:29:01 +08:00
parent f4392c50b3
commit f4f55e4c9b
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
// $Id$
let dashid = null
$(document).ready(function(){
$('.chart-grid').height($(window).height() - 131)
$('.chart-grid').height($(window).height() - 120)
let dlg = null
$.get(rb.baseUrl + '/dashboard/dash-gets', ((res) => {
@ -14,7 +14,7 @@ $(document).ready(function(){
let rendered_charts = []
$(window).resize(() => {
$setTimeout(()=>{
$('.chart-grid').height($(window).height() - 131)
$('.chart-grid').height($(window).height() - 120)
$(rendered_charts).each((idx, item)=>{ item.resize() })
}, 200, 'resize-charts')
})

View file

@ -7,7 +7,7 @@
<link rel="stylesheet" type="text/css" href="${baseUrl}/assets/lib/charts/jquery.gridster.css">
<link rel="stylesheet" type="text/css" href="${baseUrl}/assets/css/charts.css">
<style type="text/css">
.tools-bar{height:50px;padding:0 25px;padding-top:7px}
.tools-bar{height:44px;padding:0 25px;padding-top:7px}
.tools-bar h4{margin:10px 0}
.chart-grid{overflow:scroll;overflow-x:hidden;padding:15px;padding-top:0;padding-right:9px}
.gridster ul,.gridster ul>li{margin:0;padding:0}