Fix Note and Link floating link position bug on Firefox.

This commit is contained in:
Paulo Gustavo Veiga
2012-03-15 23:22:30 -03:00
parent 660e76f552
commit 90eb8346db
8 changed files with 398 additions and 4298 deletions

View File

@@ -182,7 +182,15 @@ mindplot.widget.FloatingTip = new Class({
}
var tipSz = tip.getSize(), trgC = elem.getCoordinates(body);
var tipSz = tip.getSize();
var trgC = elem.getCoordinates(body);
// Paulo: This is hack for Firefox 10.
trgC.right = trgC.right == null ? trgC.left : trgC.right;
trgC.bottom = trgC.bottom == null ? trgC.top : trgC.bottom;
trgC.height = !$defined(trgC.height) ? 0 : trgC.height;
trgC.width = !$defined(trgC.width) ? 0 : trgC.width;
var pos = { x: trgC.left + o.offset.x, y: trgC.top + o.offset.y };
if (opos == 'inside') {