mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
resizable: added visual test for alsoResize with child element
This commit is contained in:
parent
aa6fb14854
commit
012da0cab7
@ -0,0 +1,45 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>Resizable Visual Test : Resizable option alsoResize child</title>
|
||||||
|
<link rel="stylesheet" href="../visual.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="../../../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.mouse.js"></script>
|
||||||
|
<script type="text/javascript" src="../../../ui/jquery.ui.resizable.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(function() {
|
||||||
|
$("#parentDiv").resizable({
|
||||||
|
handles: 'all',
|
||||||
|
alsoResize: "#childDiv"
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<style type="text/css">
|
||||||
|
#parentDiv {
|
||||||
|
padding: 1em;
|
||||||
|
width: 200px;
|
||||||
|
height: 200px;
|
||||||
|
background: silver;
|
||||||
|
border: 1px solid gray;
|
||||||
|
}
|
||||||
|
#childDiv {
|
||||||
|
padding: 1em;
|
||||||
|
border: 1px solid gray;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div id="parentDiv">
|
||||||
|
parent
|
||||||
|
<div id="childDiv">
|
||||||
|
child
|
||||||
|
</div>
|
||||||
|
parent
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user