trying silly things, probably should not ..

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

View File

@ -11,7 +11,7 @@ def make_really_big(value, m):
v = str(value).strip()
if v[-2:] == 'px':
no = int(value.replace("px", "")) * m
return str(int(no)) + "px"
return str(int(round(no))) + "px"
else:
return value

View File

@ -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]
page_width = article.view_size()[0] - 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)})