aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCa-Phun Ung <pazu2k@gmail.com>2009-01-04 15:13:01 +0000
committerCa-Phun Ung <pazu2k@gmail.com>2009-01-04 15:13:01 +0000
commitacbe714b53fd483bfe902ec1b4850046f2be173b (patch)
tree850f2c8a1b10ea7dd89fbad80a4f28453dc3598f /tests
parentedc6f634dc1ba76251e07e65bb364d1a77cba1e5 (diff)
downloadjquery-ui-acbe714b53fd483bfe902ec1b4850046f2be173b.tar.gz
jquery-ui-acbe714b53fd483bfe902ec1b4850046f2be173b.zip
datepicker: Fixes regression in #3232 [datepicker position problem in IE 6/7]: added back functionality to detect whether the datepicker displays outside a viewpoint. Additionally if the viewpoint is too small to fit the datepicker it will show in its usual position regardless. I have also added a visual test case for this.
Diffstat (limited to 'tests')
-rw-r--r--tests/visual/datepicker.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/visual/datepicker.html b/tests/visual/datepicker.html
index c755423b6..6126398e3 100644
--- a/tests/visual/datepicker.html
+++ b/tests/visual/datepicker.html
@@ -56,7 +56,9 @@
// disabled input datepicker
$('#d3').datepicker();
-
+
+ // bottom-right datepicker
+ $('#d4').datepicker({numberOfMonths: 3});
});
</script>
</head>
@@ -96,6 +98,12 @@
<div>
<input type="text" id="d3" disabled="disabled" />
</div>
+ </li>
+ <li class="plugin" style="position: absolute; right: 0; bottom: 0; height: 40px">
+ Datepicker - positioned bottom-right
+ <div>
+ <input type="text" id="d4">
+ </div>
</li>
</ul>