jquery-lockfixed icon indicating copy to clipboard operation
jquery-lockfixed copied to clipboard

Fixed element jumps to left on scrolling when right floated

Open jackplug opened this issue 11 years ago • 1 comments

There is an offset().left measurement (el_left) but it is not used. Added el_right_float variable - if true, el_left is used to position the fixed element correctly in the horizontal axis.

(Yvo, does this work correctly for you without this amendment?)

jackplug avatar Dec 13 '13 09:12 jackplug

Thanks for the commits.The problem with getting the 'left' pixel position is that on browser resize it changes with centered layouts. It's best to left/right float the parent div, like: http://directlyrics.com/code/lockfixed/demo-float-right.html.

ymschaap avatar Dec 17 '13 10:12 ymschaap