Side navigation
#1870 closed bug (fixed)
Opened October 31, 2007 06:16PM UTC
Closed December 11, 2007 04:45AM UTC
IE6: width is not updated when options are dynamically added to selectbox
| Reported by: | cmcnulty | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.2 |
| Component: | core | Version: | 1.2.1 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
the following code produces the incorrect new width in IE6, but not firefox. Untested by me in IE7.
<script src="jquery-1.2.1.js" type="text/javascript"></script>
<!--<script src="dimensions-1.1.2/jquery.dimensions.js" type="text/javascript"></script>-->
<script>
$(document).ready(function(){
addstuff();
$("#box-width").html($("#select-thing").width());
//addstuff();
});
function addstuff(){
objTarget = document.getElementById("select-thing");
objTarget.options[objTarget.options.length]=new Option("asdfasfasfdssfd","1");
}
</script>
</head>
<body>
<div id="box-width">run-in</div>
<div id="select-container" style="display:inline; border:thin solid black">
<select id="select-thing">
<option>asdf</option>
</select>
</div>
workaround is here:
http://groups.google.com/group/jquery-en/msg/536ee127f1651566