mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +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 {
|
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;
|
||||||
|
Reference in New Issue
Block a user