Closed Bug 46510 Opened 25 years ago Closed 24 years ago

switching display:none/inline does'n work as i expect

Categories

(Core :: Layout, defect, P3)

x86
Windows NT
defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: savov, Assigned: attinasi)

Details

(Keywords: testcase)

Attachments

(1 file)

i have a button inside a div which has properties display:inline; when i set display:none and after that set display:inline the button doesn't appear on the right position.. if i remove the position attribute everything is allright. it's on Build ID: 2000072420 here comes the HTML code( click several times on the button ): <script> function showHide(){ dump( 'showHide\n' ); var but = document.getElementById( 'but1' ); but.style.display = (but.style.display=='none')? 'inline':'none'; } </script> <button onclick='showHide();'>click me.. and again.. and again</button> <div id='parentDiv' style='position:absolute;top:100;left:100;width:210;height:100;overflow:auto;border:double;'> <input style='position:absolute;top:10;left:10;'> <button style='position:absolute;top:100;left:200;display:inline;' id='but1' onclick="alert( this.parentNode.id );">but</button> </div>
setting bug status to New
Status: UNCONFIRMED → NEW
Ever confirmed: true
Changing the display property from none to inline is not causing the positioning to be re-evaluated correctly. This looks like it is either a style problem (impact not correctly hinted?) or a layout problem (the frame is not parented correctly so the position is incorrect, like bug 34031?). Needs more investigation. NOTE: chaning the visibility property instead is a possible workaround...
Assignee: clayton → attinasi
Accepting and moving to future milestone: we will have to wait until after beta3 to get to this, along with many other absolute/fixed/relative positioning issues.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Upon managerial request, adding the "testcase" keyword to 84 open layout bugs that do not have the "testcase" keyword and yet have an attachement with the word "test" in the description field. Apologies for any mistakes.
Keywords: testcase
WFM on a fresh Linux CVS build (the scrollbars switch on and off, but nothing else moves). Reporter, is this the correct behavior?
now works perfect..#2002030308(NT4 SP6)
Resolving WORKSFORME.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: