Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pagedjs
pagedjs
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 153
    • Issues 153
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Tools
  • pagedjspagedjs
  • Issues
  • #62

Closed
Open
Opened Aug 13, 2018 by Julie Blanc@JulieBlanc
  • Report abuse
  • New issue
Report abuse New issue

Margin box size in percentage

This issue concerns the "margins_grid" branch where margins boxes are calculated with CSS grid.

If a margin box size is declared as a percentage, the rendering is not correct.

The dimensions of the margins boxes are given at the grid level in their parent div.

Currently, the dimension also applies to the margin box div when it is not needed. This has the effect that the margin box has the wrong size.

The declaration of "width" and max "width" for the margin box div (.pagedjs_margin-top-center) should be deleted because these are declared in the parent div (.pagedjs_margin-top) with the grid.

HTML: isuue-62.html


Result: isuue-62-wrong.pdf

The result we should get: issue-62-correct.pdf

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
1
Labels
margin boxes
Assign labels
  • View project labels
Reference: tools/pagedjs#62