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

Breaks on window resize #1

Closed
marcelklehr opened this issue Feb 3, 2012 · 1 comment
Closed

Breaks on window resize #1

marcelklehr opened this issue Feb 3, 2012 · 1 comment
Assignees

Comments

@marcelklehr
Copy link

FF10 on Win

@ehmorris
Copy link
Owner

ehmorris commented Feb 3, 2012

fixed - the divisor constant was breaking because the birdseye container's top offset was meant to be its offset from the top of the window rather than the top of the document.

birdseye_constants.divisor = $(document).height() / 
                            ($(window).height() - $('.birdseye').offset().top);

$(window).height() - $('.birdseye').offset().top was producing a negative number

Changed to:

birdseye_constants.divisor = $(document).height() / 
                            ($(window).height() - ($('.birdseye').offset().top - window.scrollY));

@ehmorris ehmorris closed this as completed Feb 3, 2012
@ghost ghost assigned ehmorris Feb 3, 2012
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

2 participants