Skip to main content

Search and Top Navigation

#9076 closed bug (fixed)

Opened February 10, 2013 12:31AM UTC

Closed February 12, 2013 01:11PM UTC

Last modified February 12, 2013 01:13PM UTC

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:

position() calls like:

    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:

Attachments (0)
Change History (5)

Changed February 11, 2013 02:52AM UTC by tj.vantoll comment:1

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 -

Changed February 12, 2013 02:06AM UTC by petersendidit comment:2

This seams reasonable.

Here is a pull request if we decide its worth supporting.

Changed February 12, 2013 01:07PM UTC by petersendidit comment:3

status: newopen

Changed February 12, 2013 01:11PM UTC by David Petersen comment:4

resolution: → fixed
status: openclosed

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

Changeset: c958b211db2632a02f26e14f57c0862c57870aee

Changed February 12, 2013 01:13PM UTC by scottgonzalez comment:5

milestone: none1.10.1