aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-03-20 22:04:35 +0100
committerjzaefferer <joern.zaefferer@gmail.com>2010-03-20 22:04:35 +0100
commit678844ed8c08aed3a8b47a18d8954340bcf219c3 (patch)
tree38b6c221b421c65d6434d0c187c77c9891436dd4 /demos
parentb46e8a52fb46553222236a2f840ad17049abd42e (diff)
downloadjquery-ui-678844ed8c08aed3a8b47a18d8954340bcf219c3.tar.gz
jquery-ui-678844ed8c08aed3a8b47a18d8954340bcf219c3.zip
Combobox demo: Improved styling and added a title to the button, to avoid having &nbsp; in the tooltip
Diffstat (limited to 'demos')
-rw-r--r--demos/autocomplete/combobox.html13
1 files changed, 5 insertions, 8 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html
index b0ad46f25..e5dc6c92b 100644
--- a/demos/autocomplete/combobox.html
+++ b/demos/autocomplete/combobox.html
@@ -12,9 +12,10 @@
<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;
- }
+ /* TODO shouldn't be necessary */
+ .ui-button { margin-left: -1px; }
+ .ui-button-icon-only .ui-button-text { padding: 0.35em; }
+ .ui-autocomplete-input { margin: 0; padding: 0.48em 0 0.47em 0.45em; }
</style>
<script type="text/javascript">
(function($) {
@@ -55,6 +56,7 @@
})
.addClass("ui-widget ui-widget-content ui-corner-left");
$("<button>&nbsp;</button>")
+ .attr("title", "Show All Items")
.insertAfter(input)
.button({
icons: {
@@ -82,11 +84,6 @@
$("select").combobox();
});
</script>
- <style>
- /* TODO shouldn't be necessary */
- .ui-button-icon-only .ui-button-text { padding: 0.35em; }
- .ui-autocomplete-input { padding: 0.48em 0 0.47em 0.45em; }
- </style>
</head>
<body>