forked from openlp/openlp
Duh. Height
This commit is contained in:
parent
461ffeee3d
commit
a69ff65bfc
@ -159,7 +159,7 @@ class TestPdfController(TestCase, TestMixin):
|
|||||||
else:
|
else:
|
||||||
width, height = get_screen_resolution()
|
width, height = get_screen_resolution()
|
||||||
# Calculate the width of the PDF based on the aspect ratio of the PDF
|
# Calculate the width of the PDF based on the aspect ratio of the PDF
|
||||||
width = int(round(width * 0.70703125, 0))
|
width = int(round(height * 0.70703125, 0))
|
||||||
assert image.height() == height, 'The height should be {height}'.format(height=height)
|
assert image.height() == height, 'The height should be {height}'.format(height=height)
|
||||||
assert image.width() == width, 'The width should be {width}'.format(width=width)
|
assert image.width() == width, 'The width should be {width}'.format(width=width)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user