Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uize.Node.getCoords.seen and Firefox #8

Open
timcarter opened this issue Jun 15, 2011 · 0 comments
Open

Uize.Node.getCoords.seen and Firefox #8

timcarter opened this issue Jun 15, 2011 · 0 comments

Comments

@timcarter
Copy link
Contributor

The value of Uize.Node.getCoords.seen does not always match what is visually observed in Firefox. This seems to stem from Firefox allowing DOM elements to escape the boundaries of the body element. Once a DOM element has exited the interior of the body, the "seen" property is set to false in subsequent calls to Uize.Node.getCoords, even though it is clearly still visible onscreen.

I've created a test page to demonstrate the problem: http://timcarter.github.com/javascript.html. When the square is moved below the body element (highlighted in pink), "seen" is set to false. This does not occur in Chrome, which restricts the vertical movement of the DOM element. I have yet to figure out why that is the case, considering that the body element appears to span the height of the browser window.

There is also a separate issue of the "seen" property initially being set to false, which I believe is due to the square's positioning being set to "absolute".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant