Skip to main content

Search and Top Navigation

#8190 closed enhancement (duplicate)

Opened March 13, 2012 04:57PM UTC

Closed March 13, 2012 04:58PM UTC

Last modified March 13, 2012 04:58PM UTC

"in" or "within" attribute

Reported by: displague Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.position Version: 1.8.18
Keywords: Cc:
Blocked by: Blocking:
Description

JQuery UI positions could be enhanced with an "in" or "within" attribute.

This attribute would augment the existing keywords to allow positioning to a specific item (my) within a container (within).

The typical windowed slider could easily be positioned as

#!text/html
<div id="window">
  <ul id="slider">
    <li>Item 1</li>
    <li class="selected">Item 2</li>
    <li>Item 3</li>
  </ul>
</div>

<script>
$('#slider .selected').position({
  my:'center top',
  at:'center top',
  of: $('#window'),
  within: $('#slider')
})
</script>
Attachments (0)
Change History (2)

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

resolution: → duplicate
status: newclosed

This has existed in master for 8 months.

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

Duplicate of #5645.