Bug Tracker

Modify

Ticket #7070 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

.css("height") hack by Dean Edwards

Reported by: ISoft Owned by:
Priority: blocker Milestone: 1.4.3
Component: css Version: 1.4.2
Keywords: css height Cc:
Blocking: Blocked by:

Description

Calling the function .css("height") on an element with a 100% style height using Internet Explorer 6 returns the element width and not its height. The hack by Dean Edwards is maybe 'awesome' but its purpose is only to compute element width. So this hack should be modified to handle height as well.

Change History

comment:1 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid
  • Milestone changed from 1.4.2 to 1.4.3

That particular code path doesn't get called when you're asking for the height or width - it's attempts to compute the height/width in another way (using offsetWidth/Height). Additionally this has been made much more prominent in 1.4.3 as the offset code path is now at the fore-front of the calculation.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.