mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
tests visual position: minor refactor
This commit is contained in:
parent
258a637cc6
commit
4fd2befe94
@ -16,8 +16,8 @@
|
||||
$("ul").insertAfter(inputs);
|
||||
inputs.each(function(index) {
|
||||
$(this).position({
|
||||
my: $(this).data("position").replace(/-/, " "),
|
||||
at: $(this).data("position").replace(/-/, " "),
|
||||
my: $(this).data("position"),
|
||||
at: $(this).data("position"),
|
||||
of: "#container"+index,
|
||||
collision: "none"
|
||||
});
|
||||
@ -113,25 +113,25 @@
|
||||
<div id="container16" class="container2"></div>
|
||||
<div id="container17" class="container2"></div>
|
||||
|
||||
<input data-position="left-top" />
|
||||
<input data-position="center-top" />
|
||||
<input data-position="right-top" />
|
||||
<input data-position="left-top" />
|
||||
<input data-position="center-top" />
|
||||
<input data-position="right-top" />
|
||||
<input data-position="left-top" />
|
||||
<input data-position="center-top" />
|
||||
<input data-position="right-top" />
|
||||
<input data-position="left top" />
|
||||
<input data-position="center top" />
|
||||
<input data-position="right top" />
|
||||
<input data-position="left top" />
|
||||
<input data-position="center top" />
|
||||
<input data-position="right top" />
|
||||
<input data-position="left top" />
|
||||
<input data-position="center top" />
|
||||
<input data-position="right top" />
|
||||
|
||||
<input data-position="left-top" />
|
||||
<input data-position="center-center" />
|
||||
<input data-position="right-bottom" />
|
||||
<input data-position="left-top" />
|
||||
<input data-position="center-center" />
|
||||
<input data-position="right-bottom" />
|
||||
<input data-position="left-top" />
|
||||
<input data-position="center-center" />
|
||||
<input data-position="right-bottom" />
|
||||
<input data-position="left top" />
|
||||
<input data-position="center center" />
|
||||
<input data-position="right bottom" />
|
||||
<input data-position="left top" />
|
||||
<input data-position="center center" />
|
||||
<input data-position="right bottom" />
|
||||
<input data-position="left top" />
|
||||
<input data-position="center center" />
|
||||
<input data-position="right bottom" />
|
||||
|
||||
<ul>
|
||||
<li><a href="#">Java</a></li>
|
||||
|
@ -16,8 +16,8 @@
|
||||
$("ul").insertAfter(inputs);
|
||||
inputs.each(function(index) {
|
||||
$(this).position({
|
||||
my: $(this).data("position").replace(/-/, " "),
|
||||
at: $(this).data("position").replace(/-/, " "),
|
||||
my: $(this).data("position"),
|
||||
at: $(this).data("position"),
|
||||
of: "#container"+index,
|
||||
collision: "none"
|
||||
});
|
||||
@ -52,15 +52,15 @@
|
||||
<div id="container7" class="container" style="height:100px; margin-bottom: 500px;"></div>
|
||||
<div id="container8" class="container" style="height:100px; margin-bottom: 500px;"></div>
|
||||
|
||||
<input data-position="left-top" />
|
||||
<input data-position="center-top" />
|
||||
<input data-position="right-top" />
|
||||
<input data-position="left-center" />
|
||||
<input data-position="center-center" />
|
||||
<input data-position="right-center" />
|
||||
<input data-position="left-bottom" />
|
||||
<input data-position="center-center" />
|
||||
<input data-position="right-bottom" />
|
||||
<input data-position="left top" />
|
||||
<input data-position="center top" />
|
||||
<input data-position="right top" />
|
||||
<input data-position="left center" />
|
||||
<input data-position="center center" />
|
||||
<input data-position="right center" />
|
||||
<input data-position="left bottom" />
|
||||
<input data-position="center center" />
|
||||
<input data-position="right bottom" />
|
||||
|
||||
<ul>
|
||||
<li><a href="#">Java</a></li>
|
||||
|
@ -16,8 +16,8 @@
|
||||
$("ul").insertAfter(inputs);
|
||||
inputs.each(function(index) {
|
||||
$(this).position({
|
||||
my: $(this).data("position").replace(/-/, " "),
|
||||
at: $(this).data("position").replace(/-/, " "),
|
||||
my: $(this).data("position"),
|
||||
at: $(this).data("position"),
|
||||
of: "#container"+index,
|
||||
collision: "none"
|
||||
});
|
||||
@ -58,18 +58,18 @@
|
||||
<div id="container10" class="container" style="height:100px; margin-bottom: 500px;"></div>
|
||||
<div id="container11" class="container" style="height:100px; margin-bottom: 500px;"></div>
|
||||
|
||||
<input data-position="left-top" />
|
||||
<input data-position="center-top" />
|
||||
<input data-position="right-top" />
|
||||
<input data-position="left-top" />
|
||||
<input data-position="center-top" />
|
||||
<input data-position="right-top" />
|
||||
<input data-position="left-center" />
|
||||
<input data-position="center-center" />
|
||||
<input data-position="right-center" />
|
||||
<input data-position="left-bottom" />
|
||||
<input data-position="center-center" />
|
||||
<input data-position="right-bottom" />
|
||||
<input data-position="left top" />
|
||||
<input data-position="center top" />
|
||||
<input data-position="right top" />
|
||||
<input data-position="left top" />
|
||||
<input data-position="center top" />
|
||||
<input data-position="right top" />
|
||||
<input data-position="left center" />
|
||||
<input data-position="center center" />
|
||||
<input data-position="right center" />
|
||||
<input data-position="left bottom" />
|
||||
<input data-position="center center" />
|
||||
<input data-position="right bottom" />
|
||||
|
||||
<ul>
|
||||
<li><a href="#">Java</a></li>
|
||||
|
Loading…
Reference in New Issue
Block a user