Skip to content

Position: Take margin into account when performing collisions. Fixes #5766 - position: collision should take margin into account #3

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

Closed
wants to merge 1 commit into from

Conversation

bhollis
Copy link
Contributor

@bhollis bhollis commented Sep 1, 2010

This is a fix for http://dev.jqueryui.com/ticket/5766, making the collision functions for jquery.ui.position take into account the margin on the element being positioned. This will be really helpful if somebody wants to keep a "buffer" around a positioned element, or make sure the element's drop shadow (using -moz-box-shadow) doesn't go off the page and cause scrollbars.

…#5766 - position: collision should take margin into account
@scottgonzalez
Copy link
Member

Thanks. I tweaked the commit a bit for performance and landed it in 4b9d5d1

scottgonzalez pushed a commit to scottgonzalez/jquery-ui that referenced this pull request Oct 17, 2011
mikesherov pushed a commit to mikesherov/jquery-ui that referenced this pull request Jan 14, 2013
abstract out createPlaceholder
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants