What steps will reproduce the problem?
1. Have a tool tip sitting on the very left of the page with a this.xCord
whose first digit is greater than the one of the page width.
2.
3.
What is the expected output? What do you see instead?
Expected align left but got align right. Consistent behavior.
What version of the product are you using? On what operating system?
1.0
Please provide any additional information below.
The problem is that the following test at line 106 uses strings instead of
integers.
// Tooltip doesn't fit the current document dimensions
if(this.xCord + this.options.width >= Element.getWidth(document.body)) {
A parseInt solves the problem.
if(parseInt(this.xCord) + parseInt(this.options.width) >=
Element.getWidth(document.body)) {
Original issue reported on code.google.com by mittipro...@gmail.com on 27 Sep 2008 at 7:49
Original issue reported on code.google.com by
mittipro...@gmail.com
on 27 Sep 2008 at 7:49