Skip to content

Commit 678844e

Browse files
committed
Combobox demo: Improved styling and added a title to the button, to avoid having   in the tooltip
1 parent b46e8a5 commit 678844e

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

demos/autocomplete/combobox.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
<script type="text/javascript" src="../../ui/jquery.ui.autocomplete.js"></script>
1313
<link type="text/css" href="../demos.css" rel="stylesheet" />
1414
<style type="text/css">
15-
.ui-autocomplete-input {
16-
margin: 0;
17-
}
15+
/* TODO shouldn't be necessary */
16+
.ui-button { margin-left: -1px; }
17+
.ui-button-icon-only .ui-button-text { padding: 0.35em; }
18+
.ui-autocomplete-input { margin: 0; padding: 0.48em 0 0.47em 0.45em; }
1819
</style>
1920
<script type="text/javascript">
2021
(function($) {
@@ -55,6 +56,7 @@
5556
})
5657
.addClass("ui-widget ui-widget-content ui-corner-left");
5758
$("<button>&nbsp;</button>")
59+
.attr("title", "Show All Items")
5860
.insertAfter(input)
5961
.button({
6062
icons: {
@@ -82,11 +84,6 @@
8284
$("select").combobox();
8385
});
8486
</script>
85-
<style>
86-
/* TODO shouldn't be necessary */
87-
.ui-button-icon-only .ui-button-text { padding: 0.35em; }
88-
.ui-autocomplete-input { padding: 0.48em 0 0.47em 0.45em; }
89-
</style>
9087
</head>
9188
<body>
9289

0 commit comments

Comments
 (0)