Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery OuterWidth showing wrong width Reply To: Jquery OuterWidth showing wrong width

#206458
dev027
Participant

@Shikkediel I took your idea and added a document.ready, but it made no difference.

Further investigation with different browsers on Windows 8 reveals:

IE11: Shows 114 initially and 114 after the onclick.
Opera31: Shows 115 initially and 115 after the onclick.
Safari5.1: Shows 101 initially and 114 after the onclick. Refreshing the page and it shows 114 initially.
Firefox40: Shows 114 initially and 114 after the onclick.
Chrome44: Shows 113 initially and 115 after the onclick. Refreshing the page and it shows 115 initially.

I can understand some browsers reporting 114 and others 115 due to rounding issues. What confuses me is that some report it as one value and then a few seconds later report as a larger value.