| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 | "http://www.w3.org/TR/html4/strict.dtd"> |
| 3 | <html> |
| 4 | <head> |
| 5 | |
| 6 | <title>Drag And Drop - AutoScroll</title> |
| 7 | |
| 8 | <link rel="stylesheet" type="text/css" href="../../../../dojo/resources/dojo.css" /> |
| 9 | <link rel="stylesheet" type="text/css" href="../../../../dijit/themes/tundra/tundra.css" /> |
| 10 | <link rel="stylesheet" type="text/css" href="../../../../dijit/tests/css/dijitTests.css" /> |
| 11 | |
| 12 | <link rel="stylesheet" type="text/css" href="../../resources/dnd.css" /> |
| 13 | <link rel="stylesheet" type="text/css" href="../resources/test_dnd.css" /> |
| 14 | |
| 15 | <style type="text/css"> |
| 16 | |
| 17 | .draggedNode{ |
| 18 | position:absolute; |
| 19 | width:120px; |
| 20 | height:120px; |
| 21 | background-color:#FFF; |
| 22 | border:1px solid #000; |
| 23 | padding:5px; |
| 24 | } |
| 25 | |
| 26 | .bigDiv{ |
| 27 | top:0px; |
| 28 | left:0px; |
| 29 | width:1600px; |
| 30 | height:1600px; |
| 31 | } |
| 32 | </style> |
| 33 | |
| 34 | <script type="text/javascript" src="../../../../dojo/dojo.js" data-dojo-config="isDebug: true, parseOnLoad: true"></script> |
| 35 | |
| 36 | <script type="text/javascript"> |
| 37 | dojo.require("dojox.mdnd.AutoScroll"); |
| 38 | dojo.require("dojox.mdnd.Moveable"); |
| 39 | |
| 40 | dojo.addOnLoad(function(){ |
| 41 | var mov = new dojox.mdnd.Moveable({},dojo.byId("dragNode")); |
| 42 | }); |
| 43 | </script> |
| 44 | |
| 45 | </head> |
| 46 | <body class="tundra"> |
| 47 | <div class="bigDiv"> |
| 48 | <h1>Drag and Drop</h1> |
| 49 | <div id="dragNode" class="draggedNode" style="left:150px;top:150px;">Drag me ! to see autoscroll working go out of the screen</div> |
| 50 | </div> |
| 51 | </body> |
| 52 | </html> |