Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for Drag.Move with option
style: false
.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<style> | ||
#box1 { | ||
width: 100px; | ||
height: 30px; | ||
margin: 0 auto; | ||
background-color: #090; | ||
text-align: center; | ||
line-height: 30px; | ||
position: relative; | ||
} | ||
</style> | ||
|
||
<p>When you drag the green box to the left and right, the number inside the box should change, showing how many pixels the element was dragged. The element itself should stay in place.</p> | ||
|
||
<div id="box1">0</div> | ||
|
||
<script src="/depender/build?require=More/Drag.Move"></script> | ||
|
||
<script type="text/javascript"> | ||
var dragger = $('box1').makeDraggable({ | ||
modifiers: {x: 'innerHTML', y: null}, | ||
style: false | ||
}); | ||
</script> |