Modify ↓
Ticket #6176 (closed bug: invalid)
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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