Bug Tracker

Modify

Ticket #6176 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

hidden and elements with border

Reported by: hbo Owned by:
Priority: Milestone: 1.4.1
Component: css Version: 1.4.1
Keywords: filter hidden border Cc: codersdojo@…
Blocking: Blocked by:

Description

Setup: Firefox 3.5.8 on Linux

Situation: A div-element with a border was hided by jQuery. The border was defined in a css. Is is not visible, but got a width and height of -3px. This is what firebug reports.

If we search for a hidden element, jQuery looks after a height or width equal to 0. In this case, it won't detect an element, because the size is negative. If we change the comparator in the hidden filter function to less 1, it will work.

Change History

comment:1 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid
  • Component changed from selector to css

Wait - what? Why is the height/width negative? That doesn't make sense - are you defining a negative border?

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.