trying silly things, probably should not ..
This commit is contained in:
parent
08fd3be459
commit
14a4e7b4b9
|
@ -11,7 +11,7 @@ def make_really_big(value, m):
|
||||||
v = str(value).strip()
|
v = str(value).strip()
|
||||||
if v[-2:] == 'px':
|
if v[-2:] == 'px':
|
||||||
no = int(value.replace("px", "")) * m
|
no = int(value.replace("px", "")) * m
|
||||||
return str(int(no)) + "px"
|
return str(int(round(no))) + "px"
|
||||||
else:
|
else:
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
|
@ -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]
|
page_width = article.view_size()[0] - 1
|
||||||
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)})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user