X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Fdata%2Foffset%2Fstatic.html;h=6a499298d6ed408b50a2120d1d834ef94aec8bd3;hb=da26d0eb4e7f563da72cf4d5e9a1d99f6719fea4;hp=bce715ea00effc1fa855af4e363046fd76c886f4;hpb=de6520b50e481ba588e9021abcab16d06ea61141;p=jquery.git diff --git a/test/data/offset/static.html b/test/data/offset/static.html index bce715e..6a49929 100644 --- a/test/data/offset/static.html +++ b/test/data/offset/static.html @@ -6,7 +6,7 @@ static @@ -15,6 +15,8 @@ $(function() { $('.static').click(function() { $('#marker').css( $(this).offset() ); + var pos = $(this).position(); + $(this).css({ position: 'absolute', top: pos.top, left: pos.left }); return false; }); });