mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 13:51:27 +08:00
Remove Action property from Intent class.
Location tests are not executed on emulator. Label test made for iOS only. Change frame.android.action property to method. Image measured widht/height are now floor (like in android runtime).
This commit is contained in:
@ -138,8 +138,8 @@ export class Image extends view.View implements definition.Image {
|
||||
|
||||
if (nativeWidth !== 0 && nativeHeight !== 0 && (finiteWidth || finiteHeight)) {
|
||||
var scale = Image.computeScaleFactor(width, height, finiteWidth, finiteHeight, nativeWidth, nativeHeight, this.stretch);
|
||||
var resultW = nativeWidth * scale.width;
|
||||
var resultH = nativeHeight * scale.height;
|
||||
var resultW = Math.floor(nativeWidth * scale.width);
|
||||
var resultH = Math.floor(nativeHeight * scale.height);
|
||||
|
||||
measureWidth = finiteWidth ? Math.min(resultW, width) : resultW;
|
||||
measureHeight = finiteHeight ? Math.min(resultH, height) : resultH;
|
||||
|
Reference in New Issue
Block a user