Skip to content

Commit

Permalink
fix: issue 26
Browse files Browse the repository at this point in the history
  • Loading branch information
motla committed May 28, 2023
1 parent 5dfff65 commit 8eae340
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Vue 3

## v2.3.1

- Fix [Issue 26](https://github.com/motla/vue-document-editor/issues/26)

## v2.3.0

- Improvement on [Issue 28](https://github.com/motla/vue-document-editor/issues/28): Table Page Break. Now table rows don't split over pages but are simply moved if they overflow
Expand Down Expand Up @@ -76,6 +80,10 @@

# Vue 2

## v1.5.1

- Fix [Issue 26](https://github.com/motla/vue-document-editor/issues/26)

## v1.5.0

- Improvement on [Issue 28](https://github.com/motla/vue-document-editor/issues/28): Table Page Break. Now table rows don't split over pages but are simply moved if they overflow
Expand Down
3 changes: 3 additions & 0 deletions src/DocumentEditor/DocumentEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,9 @@ export default {
page.elt.style.position = "relative";
page.elt.style.padding = (typeof this.page_margins == "function") ? this.page_margins(page_idx + 1, this.pages.length) : this.page_margins;
page.elt.style.breakBefore = page_idx ? "page" : "auto";
page.elt.style.width = "calc("+this.page_format_mm[0]+"mm - 2px)";
page.elt.style.height = "calc("+this.page_format_mm[1]+"mm - 2px)";
page.elt.style.boxSizing = "border-box";
page.elt.style.overflow = "hidden";
// add overlays if any
Expand Down

0 comments on commit 8eae340

Please sign in to comment.