search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Bug with getScrollableHeight into the scheduler.js

Asked by Anonymous
12 years ago.

Hi,

With Internet Explorer less than 9.0, we can have a bug with this method.
In the case where the method return 0, will the following sentence:

$R.style.height = (this.getScrollableHeight() - 1) + "px";

IE will crash.

I suggest to change the method like that:

this.getScrollableHeight = function () {
var $V;
if (this.heightSpec === 'Fixed' || this.heightSpec === "Parent100Pct") {
$V = this.height ? this.height : 0;
} else {
if (this.innerHeightTree) {
var $2c = DayPilot.sh($f.nav.scroll);
if ($2c === 0) {
$V = this.innerHeightTree;
} else {
$V = this.innerHeightTree + $2c;
}
} else {
$V = this.rows.length * this.eventHeight;
}
};
if (this.heightSpec === 'Max' && $V > this.height) {
$V = this.height;
};
return $V <= 0 ? 1 : $V;
};

Cheers

Answer posted by Dan Letecky [DayPilot]
12 years ago.

Thanks for reporting the bug.

It's already fixed in the latest codebase and the fix will be included in the next release:

http://java.daypilot.org/daypilot-pro-for-java-7-1/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.