Skip to content

Commit 1899cca

Browse files
committed
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.
1 parent 0e24849 commit 1899cca

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

demos/autocomplete/combobox.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
<script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
1212
<script type="text/javascript" src="../../ui/jquery.ui.autocomplete.js"></script>
1313
<link type="text/css" href="../demos.css" rel="stylesheet" />
14+
<style type="text/css">
15+
.ui-autocomplete-input {
16+
margin: 0;
17+
}
18+
</style>
1419
<script type="text/javascript">
1520
(function($) {
1621
$.widget("ui.combobox", {
@@ -58,12 +63,6 @@
5863
text: false
5964
}).removeClass("ui-corner-all")
6065
.addClass("ui-corner-right ui-button-icon")
61-
.position({
62-
my: "left center",
63-
at: "right center",
64-
of: input,
65-
offset: "-1 0"
66-
}).css("top", "")
6766
.click(function() {
6867
// close if already visible
6968
if (input.autocomplete("widget").is(":visible")) {

0 commit comments

Comments
 (0)