Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#9076 closed bug (fixed)

position: percentage offset does not support decimal

Reported by: sheu Owned by:
Priority: minor Milestone: 1.10.1
Component: ui.position Version: 1.9.2
Keywords: Cc:
Blocked by: Blocking:

Description

position() calls like:

$("#id2").position({
    my: "center center",
    at: "left+50% top+50.0%",
    of: $("#id2").parent(),
    collision: "none",
});

don't work properly (see: the "top + 50.0%" part of the "at" attribute). See: http://jsfiddle.net/wPHHa/

Change History (5)

comment:1 Changed 6 years ago by tj.vantoll

Hi sheu,

Thanks for taking the time to contribute to the jQuery UI project.

I'm going to defer to others as to whether this is something that we can and want to support. Here's a reduced version of the test case - http://jsfiddle.net/tj_vantoll/vbBry/.

comment:2 Changed 6 years ago by petersendidit

This seams reasonable.

Here is a pull request if we decide its worth supporting. https://github.com/jquery/jquery-ui/pull/912

comment:3 Changed 6 years ago by petersendidit

Status: newopen

comment:4 Changed 6 years ago by David Petersen

Resolution: fixed
Status: openclosed

Position: Handle decimal percentage offsets. Fixes #9076: percentage offset does not support decimal

Changeset: c958b211db2632a02f26e14f57c0862c57870aee

comment:5 Changed 6 years ago by Scott González

Milestone: none1.10.1
Note: See TracTickets for help on using tickets.