Bug Tracker

Opened 13 years ago

Closed 13 years ago

#1870 closed bug (fixed)

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>

Change History (2)

comment:2 Changed 13 years ago by brandon

Resolution: fixed
Status: newclosed

Fixed in Rev [4100].

Note: See TracTickets for help on using tickets.