0

フローティング div で使用した場合、どうにかして dojo.position が正しい左と上の値を返さないのですか。ノードの後に​​別のフローティング div がある場合は、常にオフセットがあります。私は何か間違ったことをしていますか?

4

1 に答える 1

0

Thanks for the JSFiddle link, nice tool, didn't know that.

I found the problem: The floating divs were surrounded by a link and the onClick trigger was in the a-tag. So dojo.position fetched the position from the a-tag, which doesn't float properly as you can see here:

(I had to put the function in the HTML-box, because in the JS-box I got the error: "unknown function: showPos"!?) http://jsfiddle.net/cLX9E/23/

-> Mozilla Firefox 4.0 -> Dojo 1.6

于 2011-03-28T14:38:33.973 に答える