mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Merge pull request #567 from NativeScript/hhristov/itemSpec-length-round
Fix ItemSpec length is rounded
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user