Bug Tracker

Ticket #10505 (closed bug: worksforme)

Opened 4 years ago

Last modified 4 years ago

Returned (inner)width and (inner) height are incorrect in FF & IE

Reported by: Motty Owned by:
Priority: low Milestone: None
Component: dimensions Version: 1.6.4
Keywords: Cc:
Blocking: Blocked by:


When getting width, innerWidth, height or innerHeight on an element with a border (5px in this example) the returned value is incorrect ( http://jsfiddle.net/Zs92Q/1/):

Border Size 0 5px
Firefox Width 50 49.83333999999999
Height 50 49.83333999999999
Chrome Width 50 50
Height 50 50
Opera Width 50 50
Height 50 50
Safari Width 50 50
Height 50 50
IE7 Width 50 49
Height 50 49
IE8 Width 50 49
Height 50 49
IE9 Width 50 50.019999999999996
Height 50 50.019999999999996

It appears that jQuery v1.3.2 was the last version that returned the correct value of "50".

Change History

comment:1 Changed 4 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to worksforme
  • Status changed from new to closed
  • Component changed from unfiled to dimensions
  • Version changed from git to 1.6.4

comment:2 Changed 4 years ago by Motty

Maybe I should have specified that the data I collected is for the Windows versions? I'm not sure why this ticket was closed...


Version 1, edited 4 years ago by Motty (previous) (next) (diff)
Note: See TracTickets for help on using tickets.