Bug Tracker

Opened 6 years ago

Closed 6 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:

Description

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 6 years ago by addyosmani

Priority: undecidedlow
Status: newopen

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):

http://addyosmani.com/gyazo/7421c2.png

comment:2 Changed 6 years ago by mikesherov

Component: unfileddimensions
Milestone: None1.8
Owner: set to mikesherov
Status: openassigned
Version: 1.7.1git

comment:3 Changed 6 years ago by mikesherov

related to #11696

comment:4 Changed 6 years ago by mikesherov

#11696 is a duplicate of this ticket.

comment:6 Changed 6 years ago by mikesherov

#11522 is a duplicate of this ticket.

comment:7 Changed 6 years ago by Mike Sherov

Resolution: fixed
Status: assignedclosed

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.