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:
hshristov
2015-04-09 17:22:50 +03:00
parent 6a36011403
commit f0f6992cf0
5 changed files with 27 additions and 13 deletions

View File

@ -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;