Closed
Bug 361871
Opened 19 years ago
Closed 19 years ago
using javascript to set style.display=none does not reset the position of the element
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: ias0nas, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
|
1.32 KB,
application/octet-stream
|
Details |
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04320)
Build Identifier: firefox 2.0
If an element in a page is hidden and displayed again many times using the style attribute display, the position of the element is not reset when display=none. So if the javascript is executed many times, the element ends up in bottom of page
Reproducible: Always
Steps to Reproduce:
1.please go to url and get source code, its really simple
2.
3.
Actual Results:
the element does not go to the position it was in first place
Expected Results:
after a few clicks on the link, the page to be similar as when enterred for first time
Comment 1•19 years ago
|
||
Updated•19 years ago
|
Component: General → Layout
Keywords: testcase
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → 1.8 Branch
Comment 2•19 years ago
|
||
With Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.1pre) Gecko/2006112504 BonEcho/2.0.0.1pre repeated clicking of 'hide and show' results in the 'this is above the hidden tr' text moving down the page quickly.
With:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/2006112304 Minefield/3.0a1 [reflow]
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20061125 Minefield/3.0a1 ID:2006112504 [cairo]
the 'this is above the hidden tr' text still moves down the page, but at a much slower rate.
Comment 3•19 years ago
|
||
Note that display:table-row is the default for <TR>.
http://www.w3.org/TR/CSS21/tables.html#q2
As a workaround, toggling between "none" and "" should work in all browsers
as far as I know.
Dupe of bug 97506 via bug 305095...
*** This bug has been marked as a duplicate of 97506 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•