Fix ItemSpec length is rounded

This commit is contained in:
hshristov
2015-08-10 14:30:46 +03:00
parent cbada28f08
commit 3f4cf47578

View File

@@ -63,7 +63,7 @@ export class ItemSpec extends common.ItemSpec {
public get actualLength(): number {
if (this.nativeSpec) {
return this.nativeSpec.getActualLength() / utils.layout.getDisplayDensity();
return Math.round(this.nativeSpec.getActualLength() / utils.layout.getDisplayDensity());
}
return 0;