Bug Tracker

Opened 6 years ago

Closed 6 years ago

#13761 closed bug (notabug)

offsetWidth in IE9

Reported by: nic-t@… 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.

Change History (1)

comment:1 Changed 6 years ago by timmywil

Resolution: notabug
Status: newclosed

Please ask for help on the forums or in the #jquery irc channel.

Note: See TracTickets for help on using tickets.