Position
Arbeiten mit der using-Option1.
element.position({ using: function( position, data ) { // Information about the element being positioned data.element // jQuery object containing the element data.element.element // Left offset of the element data.element.left // Top offset of the element data.element.top // Width of the element (including padding and border) data.element.width // Height of the element (including padding and border) data.element.height // Information about the target element (same structure as data.element) data.target // Where the element is relative to the target // Possible values: left, right, center data.horizontal // Possible values: top, bottom, middle data.vertical // Which direction is weighted more in terms of the general direction // between the two elements data.important // When providing a using callback, the position of the element is // calculated, but the element is not moved. You will need to position // the element yourself: $( this ).css( position ); } });