Dashboard jpplot graph UI bug fix.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12538 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2013-01-11 09:18:51 +00:00
parent 2f54254e4a
commit 1d08b7b71a
2 changed files with 17 additions and 1 deletions

View file

@ -209,5 +209,21 @@ function drawChart(sContainerId, sTitle, aLastWeek, aThisWeek) {
}
}
});
// jpplot resize
jQuery(function($){
$(window).resize(function(){
var targetWidth = $('.jqplot-target').width();
$('.jqplot-base-canvas, .jqplot-grid-canvas').width(targetWidth).height(142);
$('.jqplot-series-shadowCanvas, .jqplot-series-canvas, .jqplot-barRenderer-highlight-canvas, .jqplot-event-canvas,').width(targetWidth/10 * 8).height(109);
$('.jqplot-xaxis').width(targetWidth/10 * 8).css('left','17px');
$('.jqplot-xaxis-tick').css({
position: 'static',
left: '0',
display: 'inline-block',
width: '14.285714%',
textAlign: 'center'
});
}).resize();
});
};
</script>