kirkas/Ascensor.js

Ascensor pages can't be printed

Closed this issue · 3 comments

Seems that using Ascensor makes the page unprintable. Safari shows a blank print preview and Chrome give the message "Print preview failed". I don't have a Windows machine to test IE.

I'm thinking this is something to do with the positioning?

Look This, it may be caused by the position in css.

This works for me:

@media print { /* use "screen,print" to preview ;) */
    * {
        color:black;
        background-color:transparent !important;
    }
    html,
    body,
    .ascensor, /* or #ascensor */
    .floor,
    .floor .text {
        position:relative !important;
        transform:none !important;
    }
    .links-to-floor,
    .prev-next-links,
    .direction-links {
        display:none;
    }
}

Every floor on a new page? Add this:

.floor {
    page-break-after:always;
}

did that resolve your issue?