aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-03-20 16:57:37 -0400
committerScott González <scott.gonzalez@gmail.com>2010-03-20 16:57:37 -0400
commit1899cca94280924e264cc8638f4a15daded1dc6e (patch)
treed1740d30e9a9376209d84f1aaefaddc69df6d2bd /demos/autocomplete
parent0e2484950b5df8d99f949a73c9c3fe4d42e97b8b (diff)
downloadjquery-ui-1899cca94280924e264cc8638f4a15daded1dc6e.tar.gz
jquery-ui-1899cca94280924e264cc8638f4a15daded1dc6e.zip
Autocomplete: Combobox demo - don't use position plugin to place the button next to the text field.
Fixes #5338 - autocomplete combobox look weird in opera 10.50.
Diffstat (limited to 'demos/autocomplete')
-rw-r--r--demos/autocomplete/combobox.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html
index 6e403ddc4..b0ad46f25 100644
--- a/demos/autocomplete/combobox.html
+++ b/demos/autocomplete/combobox.html
@@ -11,6 +11,11 @@
<script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.autocomplete.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
+ <style type="text/css">
+ .ui-autocomplete-input {
+ margin: 0;
+ }
+ </style>
<script type="text/javascript">
(function($) {
$.widget("ui.combobox", {
@@ -58,12 +63,6 @@
text: false
}).removeClass("ui-corner-all")
.addClass("ui-corner-right ui-button-icon")
- .position({
- my: "left center",
- at: "right center",
- of: input,
- offset: "-1 0"
- }).css("top", "")
.click(function() {
// close if already visible
if (input.autocomplete("widget").is(":visible")) {