Merge pull request #567 from NativeScript/hhristov/itemSpec-length-round

Fix ItemSpec length is rounded
This commit is contained in:
Hristo Hristov
2015-08-10 14:51:07 +03:00

View File

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