Skip to content
New issue

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

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

Already on GitHub? # to your account

Vertical position is wrong if page content is longer than window height #57

Open
ptheofan opened this issue Apr 14, 2014 · 2 comments
Open

Comments

@ptheofan
Copy link

I really liked this plugin! However, testing it's behaviour for bugs on the demo site revealed an issue that prevents me from using it.
Please have a look at the screenshots to see the issue.

Screenshot before triggering the dialog
screen shot 2014-04-14 at 11 12 36

Screenshot after the dialog is triggered
screen shot 2014-04-14 at 11 12 48

as you can clearly see, half the dialog is outside the window.

@voronianski
Copy link
Owner

@ptheofan yes, there is a problem with long content pages due to browser behavior on transformed and positioned elements..

related demo - http://labs.voronianski.com/test/scaled-positioning.html
some inputs on previous discussions - #7 (comment)

as well as related to #41

@Darkicorn
Copy link

One fix is to remove body {overflow: auto;} in avgrund.css thus:

html {
    height: 100%;
    overflow: auto;
}

body {
    height: 100%;
}

Which I found by searching for why window.scrollTo(0, 0) didn't work. There is an explanation on Stack Overflow at JavaScript scrollTo method does nothing?

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

No branches or pull requests

3 participants