Skip to main content

Search and Top Navigation

#5645 closed feature (fixed)

Opened May 22, 2010 10:53PM UTC

Closed July 07, 2011 02:33AM UTC

Last modified March 13, 2012 04:58PM UTC

Position: Allow for arbitrary element to be containing element

Reported by: AzaToth Owned by:
Priority: blocker Milestone: 1.9.0
Component: ui.position Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:
Description

At the moment, the collision is only defined in relation to window. I think that any arbitrary containing element, possible limited to parent elements, should be able to be used as the container which collisions are calculated from.

Attachments (0)
Change History (8)

Changed July 30, 2010 09:43AM UTC by jzaefferer comment:1

milestone: TBD1.next
priority: minormajor
type: enhancementfeature

This could be another option, called "within", with window as the default.

Changed January 24, 2011 02:45PM UTC by gnarf comment:2

I just saw a pretty perfect use case for this while trying to help someone on #jQuery.

Lets say you have some wide content you want to position to the left/right of your hovered element, but you don't want this content to break outside of your current pages flow. If you could

 {within: '#contiainer', my: 'top left', at:'top right', collision:'flip'}  

Changed February 21, 2011 09:22PM UTC by scottgonzalez comment:3

#6983 is a duplicate of this ticket.

Changed February 21, 2011 09:25PM UTC by scottgonzalez comment:4

milestone: 1.next1.9
priority: majorblocker
status: newopen

Changed March 21, 2011 04:58PM UTC by scottgonzalez comment:5

summary: position should allow for arbitary element to be containing elementPosition: Allow for arbitrary element to be containing element

Changed May 11, 2011 11:55PM UTC by davidmurdoch comment:6

Changed July 07, 2011 02:33AM UTC by jzaefferer comment:7

resolution: → fixed
status: openclosed

For some reason I never closed this ticket. Fixed by 433ed6eecf055eba327ced7e7c0ff0ce9b5fc304 / https://github.com/jquery/jquery-ui/pull/254

Changed March 13, 2012 04:58PM UTC by scottgonzalez comment:8

#8190 is a duplicate of this ticket.