drastic measures: set overflow to hidden on .canvas

This commit is contained in:
Sanj 2011-07-06 19:19:00 +05:30
parent 14a4e7b4b9
commit 15de609ad1
2 changed files with 2 additions and 1 deletions

View File

@ -522,7 +522,7 @@ def view_article(request, id):
d = article.get_dict(m, p) d = article.get_dict(m, p)
else: else:
d = article.get_dict(m) d = article.get_dict(m)
page_width = article.view_size()[0] - 1 page_width = article.view_size()[0]
page_height = article.view_size()[1] 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)}) return render_to_response("view_article.html", {'pages': d, 'm': m, 'width': addPx(page_width), 'height': addPx(page_height)})

View File

@ -27,6 +27,7 @@ em {
font-size: {{ "12px"|make_really_big:m }}; font-size: {{ "12px"|make_really_big:m }};
page-break-after: always; page-break-after: always;
page-break-inside: avoid; page-break-inside: avoid;
overflow: hidden;
} }
.box { .box {