Bug Tracker

Opened 5 years ago

Closed 4 years ago

#11293 closed bug (fixed)

Reading width or outerWidth of empty TDs alters columns width values

Reported by: enzole Owned by: mikesherov
Priority: low Milestone: 1.8
Component: dimensions Version: git
Keywords: Cc:
Blocked by: Blocking:


jQuery 1.7.1: Trying to get widths of empty cells produces a scrambled table:

have a look at this example

This happens only on WebKit browsers (tested on Safari 5.1.2 mac/pc and Chrome 16.0.whatever mac/pc).

Change History (7)

comment:1 Changed 5 years ago by addyosmani

  • Priority changed from undecided to low
  • Status changed from new to open

Weird. What I'm experiencing (even without the last line modifying anything) is a style tag being injected where it shouldn't be (confirmed Chrome Canary):


comment:2 Changed 5 years ago by mikesherov

  • Component changed from unfiled to dimensions
  • Milestone changed from None to 1.8
  • Owner set to mikesherov
  • Status changed from open to assigned
  • Version changed from 1.7.1 to git

comment:3 Changed 5 years ago by mikesherov

related to #11696

comment:4 Changed 5 years ago by mikesherov

#11696 is a duplicate of this ticket.

comment:6 Changed 5 years ago by mikesherov

#11522 is a duplicate of this ticket.

comment:7 Changed 4 years ago by Mike Sherov

  • Resolution set to fixed
  • Status changed from assigned to closed

Don't swap to measure dimensions unless the element is display:none. #807 Fixes #11293

Changeset: c80bc227280e9708dc9c3613ece9397f55f382ed

Note: See TracTickets for help on using tickets.