Nested icon indicating copy to clipboard operation
Nested copied to clipboard

Container needs to be position: static

Open aentan opened this issue 12 years ago • 3 comments

See what happens if container happens to be position: relativecor anything other than static: http://jsfiddle.net/BdXPL/1/

This could happen if the container has other styles including non-static position. By having the JS overwrite the position, the user can at least know he needs to work around the position and not have to spend half an hour like me trying to see what's fucking up the offset.

aentan avatar Aug 27 '13 15:08 aentan

Try giving the container a width.

arathael avatar Aug 28 '13 19:08 arathael

Doesn't have an effect. Fork my fiddle and try.

aentan avatar Aug 28 '13 23:08 aentan

Oh, you meant the elements add the Y offset of the container to their own.

arathael avatar Aug 29 '13 00:08 arathael