mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
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:
parent
2f54254e4a
commit
1d08b7b71a
2 changed files with 17 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue