Reduced test case: http://jsfiddle.net/Kerrick/CETWC/
In short, I am creating a jQuery element (such as via var el = $('<h1>Test</h1>');
), enabling jQuery UI's draggable functionality (el.draggable()
), and appending it to the DOM (such as via $('body').append(el);
). Instead of using position: absolute
as jQuery UI usually does, it puts position: relative
into the style
attribute of the element.
Can I prevent this and force jQuery UI to use postion: absolute
even when enabled on an element that has yet to be appended to the DOM?