Project

General

Profile

Actions

Bug #15787

closed

TMENUE_LAYERS don't works right width divs and using relativeToTriggerItem

Added by Stephan W¶rner over 18 years ago. Updated over 11 years ago.

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 #1

Updated by Martin Kutschker over 18 years ago

Does your fix work on all supported browsers? Does it work for other setups (no divs or no relativeToTriggerItem)?

Actions #2

Updated by Stephan W¶rner over 18 years ago

I have tested my fix in ie6, ff1, ns7 and opera8. in opera the fix have no effect.
the fix add only the offset from all parent layers to actual. i think the fix has no effect to other setups.

Actions #3

Updated by Stephan W¶rner over 18 years ago

if i use following lines
this.x= (bw.ns4||bw.op5)?this.css.left:GL_getLeft(this.el);
this.y= (bw.ns4||bw.op5)?this.css.top:GL_getTop(this.el);
then it works although in opera

Actions #4

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)
  • TYPO3 Version changed from 3.8.1 to 3.8
  • PHP Version deleted (4)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #5

Updated by Chris topher over 11 years ago

  • Status changed from Needs Feedback to Rejected
  • Priority changed from Should have to Won't have this time

This issue won't be fixed in the Core. Reason is that the system extension statictemplates and the associated menu objects GMENU_LAYERS, GMENU_FOLDOUT and TMENU_LAYERS experienced removal from the TYPO3 Core.

Actions

Also available in: Atom PDF