layout - How to use jQuery draggable with fixed position? -


This works right in Firefox, but that does not work in Chrome and Opera.

  & lt; Div & gt; Status: Is fixed, and it is. Drug ()  

and it does not work except Firefox

Not defined in the CSS: It works in Firefox, Chromium, Safari, iCloud

  var div = $ ('# id'); Div.resizable ({stop: function (event, ui) {var top = getTop (ui.helper); ui.helper.css ('position', 'fixed'); ui.helper.css ('top', top + "Px");}}); Div.draggable ({stop: function (event, ui) {var top = getTop (ui.helper); ui.helper.css ('position', 'fixed'); ui.helper.css ('top', top + "Px");}}); Function getTop (ele) {var eTop = ele.offset () top; Var wTop = $ (window) .scrollTop (); Var top = eutop - wTop; Return head; }  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -