Closed
Bug 356939
Opened 18 years ago
Closed 18 years ago
Wrong calculating of offsetTop?
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: pmohrenstecher, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1) Gecko/20061010 Firefox/2.0
The offsetTop of a Div Element (contains a table) is something like 800
the toy Variable is like 200
if (minimalize[i].offsetTop<toy+15 && minimalize[i].offsetTop>toy-15) minimalize[i].style.top = toy;
else if (minimalize[i].offsetTop<toy) minimalize[i].style.top = minimalize[i].offsetTop+20;
else if (minimalize[i].offsetTop>toy) minimalize[i].style.top = minimalize[i].offsetTop-20;
This will make the window directly go to the position of the toy-variable.
Dont know why, seems to be a bug???
Reproducible: Couldn't Reproduce
Reporter | ||
Comment 1•18 years ago
|
||
btw.
IE6 and IE7 are working fine...
incredible...
Reporter | ||
Comment 2•18 years ago
|
||
Got it...
Before :
toy = minimalize[i].getAttribute("vn:top");
This Works :
toy = parseInt(minimalize[i].getAttribute("vn:top"));
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•