Skip to main content

Bug Tracker

Side navigation

#10505 closed bug (worksforme)

Opened October 15, 2011 05:00PM UTC

Closed October 19, 2011 06:05PM UTC

Last modified October 21, 2011 04:29PM UTC

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:
Blocked by: Blocking:
Description

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".

Attachments (0)
Change History (2)

Changed October 19, 2011 06:05PM UTC by timmywil comment:1

component: unfileddimensions
priority: undecidedlow
resolution: → worksforme
status: newclosed
version: git1.6.4

Changed October 21, 2011 04:29PM UTC by Motty comment:2

_comment0: Maybe I should have specified that the data I collected is for the Windows versions? I'm not sure why this ticket was closed...1319214701985649
_comment1: Maybe I should have specified that the data I collected is for the Windows versions? I'm not sure why this ticket was closed... \ \ [[Image(http://i56.tinypic.com/dwchhg.jpg)]]1319214738106484

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

[[Image(http://i56.tinypic.com/dwchhg.jpg)]]