Auto-Expansion of Collapsible Box when printing

View: New views
2 Messages — Rating Filter:   Alert me  

Auto-Expansion of Collapsible Box when printing

by Chris Haynes-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Greetings,all,

Does anyone know if / how it is possible to arrange that the contents of all Collapsible Boxes are expanded while printing, regardless of whether or not they are opened on the screen view?


TIA

Chris


Re: Auto-Expansion of Collapsible Box when printing

by Dirk Frederickx :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Chris,

This sure is possible.  It requires some css tweaking.


Look up following line in the jspwiki.css:

.collapse .collapsebody, .collapsebox .collapse .collapsebody {
padding-left:1.5em;
}


Add following css rule, which will reset the height of the collapsed blocks
back to 'auto'.

@media print {
  .collapse .collapsebody ul, .collapsebox div.collapsebody  {
height:auto !important;
  }
}
(you could also add it to the jspwiki_print.css of course)


Plse log this as a JIRA improvement item; so we can add it to the standard
css sheet.

dirk



On Sun, Sep 13, 2009 at 5:32 AM, Chris Haynes <chris@...> wrote:

> Greetings,all,
>
> Does anyone know if / how it is possible to arrange that the contents of
> all Collapsible Boxes are expanded while printing, regardless of whether or
> not they are opened on the screen view?
>
>
> TIA
>
> Chris
>
>