From 15de609ad1d693fbcf3ec7b3764d57662c6fd67c Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 6 Jul 2011 19:19:00 +0530 Subject: [PATCH] drastic measures: set overflow to hidden on .canvas --- edgware/editor/views.py | 2 +- edgware/templates/view_article.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/edgware/editor/views.py b/edgware/editor/views.py index e056407..fa94bc1 100644 --- a/edgware/editor/views.py +++ b/edgware/editor/views.py @@ -522,7 +522,7 @@ def view_article(request, id): d = article.get_dict(m, p) else: d = article.get_dict(m) - page_width = article.view_size()[0] - 1 + page_width = article.view_size()[0] page_height = article.view_size()[1] return render_to_response("view_article.html", {'pages': d, 'm': m, 'width': addPx(page_width), 'height': addPx(page_height)}) diff --git a/edgware/templates/view_article.html b/edgware/templates/view_article.html index 2127c6a..e10f052 100644 --- a/edgware/templates/view_article.html +++ b/edgware/templates/view_article.html @@ -27,6 +27,7 @@ em { font-size: {{ "12px"|make_really_big:m }}; page-break-after: always; page-break-inside: avoid; + overflow: hidden; } .box {