Closed Bug 294962 Opened 20 years ago Closed 20 years ago

div position moves when set to overflow:hidden and floated and another div's display is toggled.

Categories

(Core :: Layout: Floats, defect)

1.7 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mark.kahn, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1

see http://test.webstorepackage.com/Poing/firefoxbug.html .  It's fairly
self-explanatory.

I have 2 divs, A and B that are both floated left.  A has a nested div, C.  B
has "overflow:auto" set.  When div C is hidden/displayed, div B temporarily
jumps into the position that div C occupies and then jumps back.

Reproducible: Always

Steps to Reproduce:
<STYLE>
.c{
	overflow:auto;
	float:left;
	width:500px;
	height:82px;
	background-color:red;
}
.b{
	position:relative;
	float:left;
	width:500px;
	height:410px;
}
</STYLE>

<DIV class=b>
	<DIV id=IE1_r_0>Move the mouse around.  This display of this div rapidly shifts
from 'none' to 'block'.  The red div to the right jumps here each time.  That
shouldn't happen.</DIV>
</DIV>
<DIV class=c>test</DIV>


<SCRIPT>
var iC = 0;
var iE = document.getElementById('IE1_r_0');
document.onmousemove = function(){
	iE.style.display = ((iC++)%2==0)?'none':'block';
}
</SCRIPT>
Actual Results:  
yeah, ...um...I'm going to leave this blank.

Expected Results:  
is this really needed?
I have absolutely no idea where to redirect this bug. Trying Firefox.
Assignee: myk → nobody
Component: User Interface → General
Product: Bugzilla → Firefox
QA Contact: default-qa → general
Version: unspecified → 1.0 Branch
-> Layout: Floats

Broken on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8)
Gecko/20050511 Firefox/1.0.4

Fixed on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2)
Gecko/20050520 Firefox/1.0+

Likely a dup of something FIXED.
Component: General → Layout: Floats
Product: Firefox → Core
QA Contact: general → layout.floats
Whiteboard: DUPEME
Version: 1.0 Branch → 1.7 Branch
Yup, seems fixed already.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.