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: |
Description
Attachments (0)
Change History (3)
Changed February 15, 2011 02:55PM UTC by comment:1
| priority: | minor → blocker |
|---|---|
| status: | new → open |
| summary: | Merge offset option into my and at options → Position: Merge offset option into my and at options |
Changed March 22, 2011 04:27PM UTC by comment:2
| resolution: | → fixed |
|---|---|
| status: | open → closed |
Changed October 15, 2012 01:53PM UTC by 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