Hello all,
i'm running mootools-1.2.2-core-nc.js and mootools-1.2.2.2-more-nc.js in
Firefox 3.0.10 under Mac Os X 10.5.7.
i have this code:
var testShape = {
"leftD" : newPosition.x,
"topD" : newPosition.y,
"heightD" : shape.getHeight().toInt(),
"widthD" : shape.getWidth().toInt()
}
var container = {
"leftD" : container.getLeft().toInt(),
"topD" : container.getTop().toInt(),
"heightD" : container.getHeight().toInt(),
"widthD" : container.getWidth().toInt()
}
if ((testShape.leftD > container.leftD)) {
if (((testShape.leftD + testShape.widthD) < (container.leftD +
container.widthD))) {
if ((testShape.topD > container.topD)) {
if (((testShape.topD + testShape.heightD) < (container.topD +
container.heightD))) {
check = true;
}
}
}
}
so the problem is in the second if, i'm getting NaN from container.leftD
and container.widthD just in FF3010.
With Safari no problems, neither with FF3010 under Linux and WinXP.
any suggestion?
--
Andrea