Bug #18380
closedTCEForms extraFormHeaders do not work with docheaders
0%
Description
TCEForms has the possibility to set extraFormHeaders that are included above the editing form. In templates/alt_doc.html, the ###EXTRAHEADER### is included as part of typo3-docheader so that content from the editing form always scrolls behind it.
The problem is that the docbody has an absolute position so adding extra rows to the header does not push the actual editing form down.
I can see two options to work around this...
#1 - Move ###EXTRAHEADER### outside the docheader so that it scrolls behind the header just like other content
#2 - There's already Javascript code in place for IE to dynamically calculate the height and fix scrolling problems so we could remove the absolute positioning and let the Javascript run for all browsers.
I'm attaching a screenshot and a sample extension that adds extra headers to all records.
(issue imported from #M7768)
Files
Updated by Steffen Kamper over 16 years ago
Hi Jeff,
i can confirm this. The problem is here:
div#typo3-docbody {
width: 98%;
padding: 2% 0% 2% 2%;
overflow: auto;
top: 51px;
bottom: 0;
position: absolute;
z-index: 2;
}
You see that the div is alwas 51px from top, ignoring height of docheader.
I solved it in the pagetree filter-hiding with a additional marker in the docbody-div for inline style adding the needed margin.
Updated by Steffen Kamper over 16 years ago
I think best solution is to move the extrarow to typo3-docbody
Updated by Steffen Kamper over 16 years ago
try this in alt_doc.html:
<div id="typo3-docbody">
###EXTRAHEADER###
###CONTENT###
</div>
Updated by Steffen Kamper over 16 years ago
btw - same problem when using debug.