A wrapper div fixes this by putting position: relative on the wrapper div, and not on the body. As long as you've got position: relative on the body, that is the problem, not the lack of a wrapper div. - Richard
On Wed, Aug 12, 2009 at 7:56 AM, Tobias Herrmann <[email protected]>wrote: > > The main problem is not really the initial position of the dialog, but > the behaviour when it is dragged or resized. The wrapper div would solve > that problem, but there needs to be some care taken regarding the > z-index of the dialog and the overlay especially in IE. > > Greetings, Tobias > > Richard D. Worth schrieb: > > What would a positioned wrapper give you, in terms of positioning a > > dialog? Dialogs are positioned relative to the viewport/window. > > > > - Richard > > > > On Wed, Aug 12, 2009 at 7:16 AM, Tobias Herrmann > > <[email protected] <mailto:[email protected]>> wrote: > > > > > > Hi Richard, > > > > I would be happy with the workaround mentioned there -> > > > http://groups.google.com/group/jquery-ui-dev/browse_thread/thread/4fc4707addca2723 > > But it is not possible to configure ui.dialog to use a positioned > > wrapper div. The dialog div is always appended to the document.body. > > I tried to change the specific part of the ui.dialog source-code, it > > does solve the problem. > > It would be nice, if ui.dialog could take it as an option to use this > > wrapper div. I am working on a larger project and would prefer not to > > change the source of the js-libraries used to keep it maintainable. > > > > Greetings, Tobias > > > > Richard D. Worth schrieb: > > > See > > > > > > > > > http://groups.google.com/group/jquery-ui-dev/browse_thread/thread/4fc4707addca2723 > > > > > > - Richard > > > > > > On Wed, Aug 12, 2009 at 4:54 AM, Tobias Herrmann > > > <[email protected] <mailto:[email protected]> > > <mailto:[email protected] <mailto:[email protected]>>> > > wrote: > > > > > > > > > Hi Richard, > > > > > > I put up an example on http://jsbin.com/atiqa. > > > > > > Greetings, Tobias > > > > > > Geschäftsführer: Alexander Kandzior, Amtsgericht Köln, HRB > 54613 > > > > > > > > > > > > Richard D. Worth schrieb: > > > > Are you using the latest version of jQuery UI? Which > > browser(s)? Can > > > > you reproduce a sample page on jsbin.com > > <http://jsbin.com> <http://jsbin.com> > > > <http://jsbin.com>? > > > > > > > > http://jsbin.com/ > > > > > > > > - Richard > > > > > > > > On Wed, Aug 12, 2009 at 3:47 AM, tobirius > > > <[email protected] <mailto:[email protected]> > > <mailto:[email protected] <mailto:[email protected]>> > > > > <mailto:[email protected] > > <mailto:[email protected]> <mailto:[email protected] > > <mailto:[email protected]>>>> > > > wrote: > > > > > > > > > > > > Hi List, > > > > > > > > I have a positioning problem with ui.dialog if the > > > document.body has > > > > an offset other than 0 and is position: relative or > > > absolute. The > > > > dialog will jump away from the mouse-pointer when > > dragging or > > > > resizing the dialog. > > > > This is probably caused by a funny behaviour of > > > jquery.offset which > > > > will only give you the the offset to the body and not > > to the > > > document > > > > in case the document.body has an offset other than 0 > > and is > > > position: > > > > relative or absolute. > > > > > > > > Has anybody else encountered this problem or am I missing > > > anything? > > > > > > > > Greetings, Tobias > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
