Last modified: 2014-05-29 18:57:46 UTC
when the TOC is hidden, it should not print. what happens now is a box with "Contents" in it gets printed.
Hidding is made through javascript so it probably can't be fixed :(
This should be possible with some style tweaking if we set the outer box's class to something which is hidden in the print stylesheet but displays on screen. (The remaining box shows on screen so you can click the 'show' button, but of course that's unnecessary in print.)
Created attachment 132 [details] Patch to fix this bug This patch should be all that's needed to fix this bug. As suggested, it sets the toc box's class to something that will be hidden in the print stylesheet.
Thanks, Shane! Patch works correctly in Safari 1.2.4; gone ahead and checked it into 1.4.
Ah, thanks for testing in another browser, I should note that I tested with IE 6 and Firefox 1.0 on Windows XP.
The JavaScript part for tochidden ist lost in r1=6350&r2=7073">http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?r1=6350&r2=7073 Please integrate r1=5091&r2=6350">http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js?r1=5091&r2=6350 again.
Done in r56230.
*** Bug 16869 has been marked as a duplicate of this bug. ***
Reopened. The toc gets not hidden in print when collapsed again.
Change 135692 had a related patch set uploaded by Gerrit Patch Uploader: Hide toc caption on print when collapsed https://gerrit.wikimedia.org/r/135692
Change 135692 merged by jenkins-bot: Hide toc caption on print when collapsed https://gerrit.wikimedia.org/r/135692