mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-07-04 16:55:58 +03:00
Merge commit '7f7c9b378f
' as 'jquery-ui'
This commit is contained in:
commit
0115f4500d
629 changed files with 341074 additions and 0 deletions
51
jquery-ui/tests/visual/compound/draggable_resizable.html
Normal file
51
jquery-ui/tests/visual/compound/draggable_resizable.html
Normal file
|
@ -0,0 +1,51 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Compound Visual Test: Draggable and Resizable block element</title>
|
||||
<link rel="stylesheet" href="../visual.css">
|
||||
<link rel="stylesheet" href="../../../themes/base/all.css">
|
||||
<script src="../../../external/jquery/jquery.js"></script>
|
||||
<script src="../../../ui/core.js"></script>
|
||||
<script src="../../../ui/widget.js"></script>
|
||||
<script src="../../../ui/mouse.js"></script>
|
||||
<script src="../../../ui/draggable.js"></script>
|
||||
<script src="../../../ui/resizable.js"></script>
|
||||
<style>
|
||||
.draggable {
|
||||
margin: 0.5em;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.absolute {
|
||||
color: red;
|
||||
position: absolute !important;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(function() {
|
||||
$( ".draggable" )
|
||||
.addClass( "ui-widget ui-widget-header ui-corner-all" )
|
||||
.draggable({
|
||||
revert: "invalid"
|
||||
})
|
||||
.resizable({
|
||||
minHeight: 13,
|
||||
handles: "s"
|
||||
});
|
||||
$( ".draggable:last" ).addClass( "absolute" );
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>WHAT: Three draggable and resizable elements, with only a bottom handle. Last one (red color) is absolutely positioned.</p>
|
||||
<p>EXPECTED: Each element can be dragged and resized. The first two stay with their relative positioning (induced by draggable). The last one can be resized despite the absolute positioning.</p>
|
||||
|
||||
<div id="first">
|
||||
<div class="draggable">Draggable 1-1</div>
|
||||
<div class="draggable">Draggable 1-2</div>
|
||||
<div class="draggable">Draggable 1-3</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue