Bug Tracker

Modify

Ticket #4133 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

height() function not accurate in firefox

Reported by: liio Owned by:
Priority: major Milestone: 1.3.2
Component: unfiled Version: 1.3.1
Keywords: Cc:
Blocking: Blocked by:

Description

I found this in following code: <div id="test"> <ul>

<li></li> <li></li>

<ul> </div>

$("#test").height(); the retreived height value is only accurate when margin and padding are all zero.

this error only occurs in Firefox.

jquery version: 1.3.1 ff version: Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-CN; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 (.NET CLR 3.5.30729)

Change History

comment:1 Changed 4 years ago by dmethvin

When I look at that HTML in Firefox there are two empty bullets. The height returns 16. What value did you expect? When you say "margin and padding are all zero" which elements do you mean?

comment:2 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

Please reopen if the problem is still there and explain the expected results.

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.