Added jquery resize plugin to enable the set of the resizing event directly on the element.
This commit is contained in:
@ -376,6 +376,7 @@ drawChart = function(entries, element) {
|
||||
|
||||
// clear previous chart
|
||||
$(element).html("");
|
||||
$(element).resize();
|
||||
|
||||
// plot chart
|
||||
jqplot = $.jqplot(element.id, chartValues, {
|
||||
@ -410,7 +411,7 @@ drawChart = function(entries, element) {
|
||||
}}],
|
||||
});//*/
|
||||
|
||||
$(window).resize(function() {
|
||||
$(element).resize(function() {
|
||||
jqplot.replot({resetAxes: true});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user