Ticket #4438

7 views
Skip to first unread message

Fernando Ferreira

unread,
Apr 6, 2009, 11:24:52 AM4/6/09
to jquery...@googlegroups.com
First of all, I would like to thank you guys for putting in so much time and effort on this amazing framework.

I just filled Ticket #4438, about a bug in the position of the helper in the selectable, when body has position: relative and an offset relative to the document (margin, padding, etc.) What I forgot to mention is that the same problem affects ui.dialog too, in the same conditions, and probably is present other places in the framework. When body has position: relative, the assumption that the origin point (0,0) of the body is the same of the document is not valid when body is offset by a margin or its parent offset it with padding.

I can make a test case if you want, but it is straightforward based on the example I attached on the ticket. In the same conditions, create a modal dialog and drag it. Also, notice that the overlay doesn't cover the whole document, only the body.

Sorry for my crummy english, it is not my first language.

Best regards, and I hope it helps a little.

Fernando Ferreira

Scott González

unread,
Apr 7, 2009, 1:16:32 PM4/7/09
to jQuery UI Development
Neither jQuery nor jQuery UI supports positioning when the body is
positioned. You need to use a positioned wrapper div instead to get
support for this.

On Apr 6, 11:24 am, Fernando Ferreira
<fernando.ferreira.se...@gmail.com> wrote:
> First of all, I would like to thank you guys for putting in so much time and
> effort on this amazing framework.
>
> I just filled Ticket #4438 <http://dev.jqueryui.com/ticket/4438>, about a

Fernando Ferreira

unread,
Apr 7, 2009, 1:53:35 PM4/7/09
to jquery...@googlegroups.com
Greetings!

Is it a deliberate shortcoming, in order to reduce complexity, or something that never arose and will be dealt with eventually? If it is the former, is there a reference for the original discussion on this theme? And, if it is the latter, I can help to tackle the problem.

Best regards

2009/4/7 Scott González <scott.g...@gmail.com>

Scott González

unread,
Apr 7, 2009, 3:21:43 PM4/7/09
to jquery...@googlegroups.com
It is deliberate, though I don't know if it's related to browser bugs that can't be worked around or if it just adds too much complexity and/or overhead for such an uncommon (and easily worked around) problem.

If you need more details about this, I would suggest asking on jquery-dev where you'll get the attention of the developers who are responsible for making this decision.

Hope that helps.
Reply all
Reply to author
Forward
0 new messages