mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable, Resizable: ticket: #5335 - visual test
reduced test to the relevant parts, also fix things pointed out by rdworth
This commit is contained in:
parent
5d95633bed
commit
956f48adf8
@ -1,62 +1,52 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title>Resizable Visual Test : Resizable ticket #4940</title>
|
<title>Resizable Visual Test : Resizable ticket #5335</title>
|
||||||
<link rel="stylesheet" href="../visual.css" type="text/css" />
|
<link rel="stylesheet" href="../visual.css" type="text/css" />
|
||||||
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css" />
|
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css" />
|
||||||
<script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
|
<script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
|
||||||
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
|
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
|
||||||
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
|
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
|
||||||
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
|
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
|
||||||
<script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
|
<script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
|
||||||
<script type="text/javascript" src="../../../ui/jquery.ui.droppable.js"></script>
|
<script type="text/javascript" src="../../../ui/jquery.ui.droppable.js"></script>
|
||||||
<script type="text/javascript" src="../../../ui/jquery.ui.resizable.js"></script>
|
<script type="text/javascript" src="../../../ui/jquery.ui.resizable.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
$('.item.to-be-draggable').draggable({ revert: true });
|
$('.item.to-be-draggable').draggable({ revert: true });
|
||||||
$('#target').droppable({ accept: '.item', drop: function() { alert('dropped!'); }});
|
$('.item').resizable({ maxWidth: 500, minHeight: 150, minWidth: 170, maxHeight: 400,handles: 'n,s' });
|
||||||
$('.item').resizable({ maxWidth: 500, minHeight: 150, minWidth: 170, maxHeight: 400,handles: 'n,s' });
|
}
|
||||||
});
|
);
|
||||||
</script>
|
</script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
#main { width: 900px; height: 500px; }
|
#main {
|
||||||
#main #sidebar { float: left; width: 200px; height: 100%; background-color: #88f; }
|
width: 900px;
|
||||||
#main #sidebar #target { width: 180px; height: 400px; background-color: #f88; margin: 10px; }
|
height: 500px;
|
||||||
#main #container { float: left; width: 600px; height: 500px; overflow: scroll;}
|
overflow: scroll;
|
||||||
div.item {
|
}
|
||||||
width: 170px;
|
.item {
|
||||||
height: 150px;
|
width: 170px;
|
||||||
margin: 10px;
|
height: 150px;
|
||||||
border: 1px solid #aaa;
|
margin: 10px;
|
||||||
}
|
border: 1px solid #aaa;
|
||||||
#sub {
|
}
|
||||||
height: 2000px;
|
#sub {
|
||||||
}
|
height: 2000px;
|
||||||
.i1 { background-color: #acacac; }
|
}
|
||||||
.i2 { background-color: #bcacac; }
|
.i1 { background-color: #acacac; }
|
||||||
.i3 { background-color: #acbcac; }
|
.i2 { background-color: #bcacac; }
|
||||||
.i4 { background-color: #acacbc; }
|
|
||||||
.i5 { background-color: #bcbcac; }
|
|
||||||
.i6 { background-color: #acbcbc; }
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<h1 class="ui-widget-header"><a href="http://dev.jqueryui.com/ticket/5335">#5335 - Resizable: position set to absolute at end of resize</a></h1>
|
||||||
|
<div id="main">
|
||||||
|
<div id="sub">
|
||||||
|
<div class="item i1 to-be-draggable">Draggable</div>
|
||||||
|
<div class="item i2">Not draggable</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h1 class="ui-widget-header"><a href="http://dev.jqueryui.com/ticket/5335">#5335 - Resizable: position set to absolute at end of resize</a></h1>
|
</div>
|
||||||
<div id="main">
|
</body>
|
||||||
<div id="sidebar"><div id="target">Drop target</div></div>
|
|
||||||
<div id="container">
|
|
||||||
<div id="sub">
|
|
||||||
<table>
|
|
||||||
<tr><td><div class="item i1 to-be-draggable">Drag item 1 - is draggable </div></td></tr>
|
|
||||||
<tr><td><div class="item i2">Drag item 2 - is not draggable</div></td></tr>
|
|
||||||
</table>
|
|
||||||
<div class="item i3 to-be-draggable">Drag item 3 - is draggable - outside table</div>
|
|
||||||
<div class="item i4">Drag item 4 - is not draggable - outside table</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user