diff options
author | Richard Worth <rdworth@gmail.com> | 2010-03-12 01:21:36 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2010-03-12 01:21:36 +0000 |
commit | 012da0cab72286a43cd14b33dfb9deed1fd660ba (patch) | |
tree | 258b6da927c6075fe12e9acd731783240c2bdc79 /tests | |
parent | aa6fb148540251eb981670643c03602ca6cbbbfe (diff) | |
download | jquery-ui-012da0cab72286a43cd14b33dfb9deed1fd660ba.tar.gz jquery-ui-012da0cab72286a43cd14b33dfb9deed1fd660ba.zip |
resizable: added visual test for alsoResize with child element
Diffstat (limited to 'tests')
-rw-r--r-- | tests/visual/resizable/resizable_option_alsoResize_child.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/visual/resizable/resizable_option_alsoResize_child.html b/tests/visual/resizable/resizable_option_alsoResize_child.html new file mode 100644 index 000000000..fbbe7953b --- /dev/null +++ b/tests/visual/resizable/resizable_option_alsoResize_child.html @@ -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> |