Actions
Bug #15787
closedTMENUE_LAYERS don't works right width divs and using relativeToTriggerItem
Status:
Rejected
Priority:
Won't have this time
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-03-08
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
3.8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
if several more layers into another boxed, the offset of the superordinate layer are ignored.
a fix, i have do for me is in media\scripts\jsfunc.layermenu.js:
function GL_getObj(obj){
nest="";
this.el= bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document."+obj):document.getElementById(obj);
this.css= bw.ns4?this.el:this.el.style;
this.ref= bw.ns4?this.el.document:document;
//this.x= (bw.ns4||bw.op5)?this.css.left:this.el.offsetLeft;
//this.y= (bw.ns4||bw.op5)?this.css.top:this.el.offsetTop;
this.x= (bw.ns4||bw.op)?this.css.left:GL_getLeft(this.el);
this.y= (bw.ns4||bw.op)?this.css.top:GL_getTop(this.el);
this.height= (bw.ie4||bw.ie5||bw.ns6||bw.op7)?this.el.offsetHeight:bw.ns4?this.ref.height:bw.op4?this.css.pixelHeight:0;
this.width= (bw.ie4||bw.ie5||bw.ns6||bw.op7)?this.el.offsetWidth:bw.ns4?this.ref.width:bw.op4?this.css.pixelWidth:0;
return this;
}
function GL_getLeft(l){
if (l.offsetParent) return (l.offsetLeft + GL_getLeft(l.offsetParent));
else return (l.offsetLeft);
};
function GL_getTop(l){
if (l.offsetParent) return (l.offsetTop + GL_getTop(l.offsetParent));
else return (l.offsetTop);
};
(issue imported from #M2799)
Actions