[TYPO3-dev] typo3/mod.php does NOT allow scrolling

Steffen Kamper info at sk-typo3.de
Tue Mar 10 09:56:23 CET 2009


Hi Mathias,

Mathias Schreiber [wmdb >] schrieb:
> Hi guys (n gals),
> 
> I just wanted to ask whether you considr this a bug or an intended 
> "feature" before I supply a patch.
> 
> Background:
> typo3/stylesheet.css sets all body tags with the ID typo3-mod-php to 
> height 100% and overflow hidden.
> 
> This involves all backend modules that use mod.php (see 
> typo3/template.php on line 235, which changes typo3/mod.php to 
> typo3-mod-php).
> 
> At least for me this makes no sense, since scrolling in modules might 
> appear from time to time.
> 
> In order to break next to nothing I suggest to remove the selector 
> body#typo3-mod-php from the stylesheet rule and copy the selector to
> 
> body#typo3-mod-php {
>     padding: 0;
>     margin: 0;
>     overflow: auto;
>     height: 100%;
> }
> 
> Another option would be to leave the module body like it is but then 
> give the div.typo3-bigDoc 100% height and overflow: auto;
> 
> Suggestions please.
> 
> Mathias

It's correct that the body has overflow: hidden

The reason is the docheader. Now use an inner div like core does:
typo3-docbody

and give it overflow: auto;

and you're done.

mod.php isn't related as it's only used for link generation.

vg Steffen




More information about the TYPO3-dev mailing list