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

Workaround for #9023. #9339

Closed
wants to merge 4 commits into from
Closed

Workaround for #9023. #9339

wants to merge 4 commits into from

Conversation

chrisseaton
Copy link
Contributor

This is an ugly fix for #9023.

We make the background and the container fill the entire document. We can then scroll as normal within the document, and we aren't using fixed anywhere, as the virtual keyboard breaks that.

To get the modal into the right place, we add padding to the current scroll position.

This will break if the page changes shape (shouldn't happen on iOS, basic rotation is fine). It also sniffs for iOS, which isn't great, but I can't see another way.

So overall this is a pretty nasty fix, and I wouldn't blame you for not merging it, but it may be of interest to someone with the same problem as me. It works fine for my use case.

@cvrebert
Copy link
Collaborator

Assuming there isn't some more elegant solution, this might be a candidate for the docs, ala #9171.

Conflicts:
	dist/css/bootstrap.min.css
	dist/js/bootstrap.js
	dist/js/bootstrap.min.js
	js/modal.js
@chrisseaton
Copy link
Contributor Author

Done in #9341.

Conflicts:
	dist/css/bootstrap.min.css
	dist/js/bootstrap.min.js

Fixed by rebuilding.
@fat
Copy link
Member

fat commented Aug 17, 2013

not the right solution for core, thanks though

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

Successfully merging this pull request may close these issues.

3 participants