public
Description: Updated hourly from the JQuery SVN repo
Homepage: http://jquery.com
Clone URL: git://github.com/JackDanger/jquery.git
Search Repo:
Updating unit tests for offset

git-svn-id: http://jqueryjs.googlecode.com/svn/trunk@5615 
c715fcbe-d12f-0410-84c4-316a508785bb
brandon.aaron (author)
Thu May 15 16:36:06 -0700 2008
commit  f8f72513860cf2e63adddbf74aa38c92ba76a7d8
tree    d2b176b42777935d5cef3f6c3abcaaafe93e41d6
parent  570220f79415d3af7a0b139f0bd066a283382530
...
28
29
30
 
31
32
...
28
29
30
31
32
33
0
@@ -28,6 +28,7 @@
0
     <div id="fixed-2" class="fixed"></div>
0
     <div id="forceScroll"></div>
0
     <div id="marker"></div>
0
+ <p class="instructions">Click the white box to move the marker to it.</p>
0
   </body>
0
 </html>
...
34
35
36
37
 
38
39
...
34
35
36
 
37
38
39
0
@@ -34,7 +34,7 @@
0
     </div>
0
     <div id="forceScroll"></div>
0
     <div id="marker"></div>
0
- <p class="instructions">Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.</p>
0
+ <p class="instructions">Click the white box to move the marker to it..</p>
0
   </body>
0
 </html>
...
15
16
17
 
 
18
19
20
...
15
16
17
18
19
20
21
22
0
@@ -15,6 +15,8 @@
0
       $(function() {
0
         $('.static').click(function() {
0
           $('#marker').css( $(this).offset() );
0
+ var pos = $(this).position();
0
+ $(this).css({ position: 'absolute', top: pos.top, left: pos.left });
0
           return false;
0
         });
0
       });
...
38
39
40
41
 
42
43
...
38
39
40
 
41
42
43
0
@@ -38,7 +38,7 @@
0
       </tbody>
0
     </table>
0
     <div id="marker"></div>
0
- <p class="instructions">Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.</p>
0
+ <p class="instructions">Click the white box to move the marker to it..</p>
0
   </body>
0
 </html>

Comments

    No one has commented yet.