Skip to content

Commit ddb9a78

Browse files
committed
Position: Added visual test for flipping with margin and box-shadow.
1 parent 4b9d5d1 commit ddb9a78

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>Position Visual Test: Default</title>
6+
<link rel="stylesheet" href="../visual.css" type="text/css" />
7+
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css" title="ui-theme" />
8+
<script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
9+
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
10+
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
11+
<script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
12+
<script type="text/javascript" src="http://jqueryui.com/themeroller/themeswitchertool/"></script>
13+
<script type="text/javascript">
14+
$(function() {
15+
$( "#elem" ).position({
16+
my: "right bottom",
17+
at: "right bottom",
18+
of: window,
19+
collision: "fit"
20+
});
21+
});
22+
</script>
23+
<style>
24+
#elem {
25+
position: absolute;
26+
top: 100px;
27+
left: 100px;
28+
width: 200px;
29+
height: 200px;
30+
box-shadow: 10px 10px 5px #888;
31+
-moz-box-shadow: 10px 10px 5px #888;
32+
-webkit-box-shadow: 10px 10px 5px #888;
33+
background-color: #aaa;
34+
margin: 15px;
35+
}
36+
</style>
37+
</head>
38+
<body>
39+
40+
<div id="elem"></div>
41+
42+
</body>
43+
</html>

0 commit comments

Comments
 (0)