Skip to main content

Search and Top Navigation

#6981 closed enhancement (fixed)

Opened February 13, 2011 05:22PM UTC

Closed March 22, 2011 04:27PM UTC

Last modified October 15, 2012 01:53PM UTC

Position: Merge offset option into my and at options

Reported by: adovenmuehle Owned by:
Priority: blocker Milestone: 1.9.0
Component: ui.position Version: 1.8.9
Keywords: Cc:
Blocked by: Blocking:
Attachments (0)
Change History (3)

Changed February 15, 2011 02:55PM UTC by scottgonzalez comment:1

priority: minorblocker
status: newopen
summary: Merge offset option into my and at optionsPosition: Merge offset option into my and at options

Changed March 22, 2011 04:27PM UTC by Scott González comment:2

resolution: → fixed
status: openclosed

Position: Merged offset option into my and at options and added support for percentage-based offsets. Fixes #6981 - Position: Merge offset option into my and at options. Fixes #7028 - Position: Allow percent-based offsets.

Changeset: 6f051d5d6a8eaf6fcc2a08ff68dbf5378029abc2

Changed October 15, 2012 01:53PM UTC by olejorgenb comment:3

Gets kinda awkward when you have dynamic offsets..

function offsetString(value) {
  if(value >= 0)
    return "+"+value;
  else
    return ""+value; // -45 ==> "-45"
}
// ...
elem.position({
  my: "right"+offsetString(dynamicOffset) + " center",
// ...
});

Easily solvable by a utility function though