Skip to content

Commit

Permalink
Autocomplete: Combobox demo - don't use position plugin to place the …
Browse files Browse the repository at this point in the history
…button next to the text field.

Fixes #5338 - autocomplete combobox look weird in opera 10.50.
  • Loading branch information
scottgonzalez committed Mar 20, 2010
1 parent 0e24849 commit 1899cca
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions demos/autocomplete/combobox.html
Expand Up @@ -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", {
Expand Down Expand Up @@ -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")) {
Expand Down

0 comments on commit 1899cca

Please sign in to comment.