media: fixed bug when media size can be decimal

- produces invalid docx document
This commit is contained in:
Igor Bulovski
2018-06-29 00:32:01 +02:00
parent 55220c147d
commit c797ed9c25

View File

@ -23,8 +23,8 @@ export class Media {
y: dimensions.height,
},
emus: {
x: dimensions.width * 9525,
y: dimensions.height * 9525,
x: Math.round(dimensions.width * 9525),
y: Math.round(dimensions.height * 9525),
},
},
};