hi,when using the tooltip feature of the bar chart,we find sometimes(not always,according to the window initial size ) it will fires the windows resize event.
chrome is fine ,this problem only occurs in IE8
our code snippets :
var currentHeight;
var currentWidth;
$(window).resize(function () {
var windowHeight = $(window).height();
var windowWidth = $(window).width();
if (currentHeight == undefined || currentHeight != windowHeight
|| currentWidth == undefined || currentWidth != windowWidth) {
currentHeight = windowHeight;
currentWidth = windowWidth;
kendo.resize("#ourChartDiv"); // we want to dynamically resize the chart size according to the window size
}
});
we find kendo.resize method will remove the tootip again,so we got the following exception
in kendo.ui.js ( Kendo UI v2014.3.1119 )
var size = {
width: this.element.outerWidth(),
height: this.element.outerHeight()
};
this.element is null
I want know how to resolve or avoid this problem ,thanks in advance !