Opened 10 years ago
Closed 10 years ago
#13761 closed bug (notabug)
offsetWidth in IE9
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
<!DOCTYPE html> <html > <head> <script type="text/javascript" src="jquery-1.9.1.js" ></script> </head> <body>
<div id="test" style="border:5px solid red; width:16px; padding:13px; margin:24px;overflow:scroll;">
test
</div>
<script>
alert($('#test').width());
</script> </body> </html>
if the width is less than 17px, IE9 will return 17, other browswer will return what you specified.
Note: See
TracTickets for help on using
tickets.
Please ask for help on the forums or in the #jquery irc channel.