]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Combobox demo - don't use position plugin to place the button next...
authorScott González <scott.gonzalez@gmail.com>
Sat, 20 Mar 2010 20:57:37 +0000 (16:57 -0400)
committerScott González <scott.gonzalez@gmail.com>
Sat, 20 Mar 2010 20:57:37 +0000 (16:57 -0400)
Fixes #5338 - autocomplete combobox look weird in opera 10.50.

demos/autocomplete/combobox.html

index 6e403ddc49057e73ee401ab4f50f0e2c3b8ff5b5..b0ad46f253986cc737cd53522e4732d48ae46e98 100644 (file)
        <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", {
                                        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")) {