Code Monkey home page Code Monkey logo

Comments (7)

TumTum23 avatar TumTum23 commented on July 18, 2024

I think it is to do with this code:

// enable/disable single card page
$(".card", printFrame.document).css({ 'page-break-after' : '', 'float' : '', 'margin-bottom': '10px' });
if (settings.singleCardPage) {
  //alert('hola')
  $(".card", printFrame.document).css({ 'page-break-after': 'always', 'float': 'none', 'margin-bottom': '10px' });
  //alert('adios')
} else {
  $(".card", printFrame.document).each(function(index, element){
     if(index % (settings.colCount * settings.rowCount ) >= (settings.colCount * (settings.rowCount - 1))){
     $(element).css({ 'margin-bottom': '10px' });
     }
  });
}

}

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

I will have a look at it at the weekend.Seems to be a known bug https://www.fxsitecompat.com/en-CA/docs/2017/page-break-before-after-in-print-stylesheet-may-lead-to-lack-or-overlap-of-elements/

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

any ideas?

from jira-issue-card-printer.

rpelaez avatar rpelaez commented on July 18, 2024

Hi Bengt, I'm in charge of this, but I have no idea how to solve the issue with firefox
1 page x page works perfect, but the rest fails...
I need to try with your last version if the issue still happens.

from jira-issue-card-printer.

rpelaez avatar rpelaez commented on July 18, 2024

Checked with the new version, when you change the grid dimensions the layout goes to the infinite.
With 1cardxpage works, the rest fails
Captura de pantalla 2019-06-16 a las 20 10 57
Thanks Bengt!

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

Should work now, problem was that firefox does not set iframe body height to "100%" by default as chrome does.
I also add 'color-adjust: exact' to enforce background color and images to be printed, without the need of checking the specific option in print menu.

from jira-issue-card-printer.

qoomon avatar qoomon commented on July 18, 2024

please confirm fix

from jira-issue-card-printer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.