Search and Top Navigation
#5766 closed bug (fixed)
Opened June 24, 2010 05:32AM UTC
Closed September 03, 2010 02:43PM UTC
Last modified November 19, 2010 06:26PM UTC
position: collision should take margin into account
Reported by: | bhollis | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.8.5 |
Component: | ui.position | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The position utility should take into account margins when performing collisions (or offer some other way of offsetting the collision box from the element itself). This way you could prevent positioned elements from getting too close to the edge of the screen. This is especially useful when the positioned element uses -moz-box-shadow, since a shadow that falls outside the page will cause scrollbars.
Attachments (0)
Change History (8)
Changed June 24, 2010 06:15AM UTC by comment:1
Changed July 17, 2010 12:42AM UTC by comment:2
I'd really love to see this patch committed - without it there's no good way to use drop shadows on positioned elements or pop stuff up that doesn't go to the exact edge of the screen.
Changed July 30, 2010 10:05AM UTC by comment:3
milestone: | TBD → 1.9 |
---|---|
priority: | minor → major |
type: | enhancement → bug |
Tested that commit. Testsuite fails on IE8.
Changed August 01, 2010 09:07PM UTC by comment:4
Sorry about that! I've fixed this in http://github.com/bhollis/jquery-ui/commit/e9ce8e7b60644f9fb504d2e9684bd61f8c97388d
Changed August 13, 2010 05:40AM UTC by comment:5
I rebased the IE8 fix and the original patch together into one commit on top of the latest master if that makes it easier to pull: http://github.com/bhollis/jquery-ui/commit/118a2f86a1c74ab5f42a1700512ec33667296f12
Changed September 03, 2010 02:43PM UTC by comment:6
resolution: | → fixed |
---|---|
status: | new → closed |
Fixed in 4b9d5d1. Thanks bhollis.
Changed September 10, 2010 05:25PM UTC by comment:7
milestone: | 1.9 → 1.8.5 |
---|
I addressed this in http://github.com/bhollis/jquery-ui/commit/d2ffcac0adb79c3415ec3148f604f9de15c7cf0a and have sent a pull request.