Skip to content

Commit

Permalink
Selectmenu: Reorder default demo to reduce the odd top-margin (still …
Browse files Browse the repository at this point in the history
…needed to fully show the popup menu)
  • Loading branch information
jzaefferer committed Feb 21, 2012
1 parent aa84b39 commit d5c74f7
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions demos/selectmenu/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@
$(function() {
$('#speed').selectmenu();

$('#files').selectmenu();

var withOverflow = $('#number').selectmenu({
dropdown: false
});
withOverflow.selectmenu("widget").addClass("overflow");

$('#files').selectmenu();

});
</script>
<style>
form { margin: 100px 0 0 0 }
form { margin: 50px 0 0 0 }
fieldset { border: 0; }
label { display: block; }
select { width: 200px; }
Expand All @@ -50,6 +49,20 @@
<br />
<br />
<br />
<label for="files">Select a file:</label>
<select name="files" id="files">
<optgroup label="Scripts">
<option value="jquery">jQuery.js</option>
<option value="jqueryui">ui.jQuery.js</option>
</optgroup>
<optgroup label="Other files">
<option value="somefile">Some unknown file</option>
<option value="someotherfile">Some other file</option>
</optgroup>
</select>
<br />
<br />
<br />
<label for="number">Select a number:</label>
<select name="number" id="number">
<option value="1">1</option>
Expand All @@ -72,20 +85,6 @@
<option value="18">18</option>
<option value="19">19</option>
</select>
<br />
<br />
<br />
<label for="files">Select a file:</label>
<select name="files" id="files">
<optgroup label="Scripts">
<option value="jquery">jQuery.js</option>
<option value="jqueryui">ui.jQuery.js</option>
</optgroup>
<optgroup label="Other files">
<option value="somefile">Some unknown file</option>
<option value="someotherfile">Some other file</option>
</optgroup>
</select>
</fieldset>
</form>

Expand Down

0 comments on commit d5c74f7

Please sign in to comment.