git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Brought back the compareDocumentPosition code. While it is redundant in Firefox it...
[jquery.git]
/
test
/
data
/
offset
/
static.html
diff --git
a/test/data/offset/static.html
b/test/data/offset/static.html
index
bce715e
..
10116af
100644
(file)
--- a/
test/data/offset/static.html
+++ b/
test/data/offset/static.html
@@
-15,6
+15,8
@@
$(function() {
$('.static').click(function() {
$('#marker').css( $(this).offset() );
$(function() {
$('.static').click(function() {
$('#marker').css( $(this).offset() );
+ var pos = $(this).position();
+ $(this).css({ position: 'absolute', top: pos.top, left: pos.left });
return false;
});
});
return false;
});
});