FIX: IOS measure bug + livesinc

This commit is contained in:
vakrilov
2017-03-14 11:50:03 +02:00
parent 9a051f8373
commit 32a1a4760a
2 changed files with 3 additions and 1 deletions

View File

@@ -214,6 +214,8 @@ exports.start = function (entry?: NavigationEntry) {
if (entry) {
exports.mainEntry = entry;
}
started = true;
if (!iosApp.nativeApp) {
// Normal NativeScript app will need UIApplicationMain.

View File

@@ -84,7 +84,7 @@ export class Label extends TextBase implements LabelDefinition {
this._fixedSize = (widthMode === layout.EXACTLY ? FixedSize.WIDTH : FixedSize.NONE)
| (heightMode === layout.EXACTLY ? FixedSize.HEIGHT : FixedSize.NONE);
let nativeSize = nativeView.sizeThatFits(CGSizeMake(width, height));
let nativeSize = nativeView.sizeThatFits(CGSizeMake(layout.toDeviceIndependentPixels(width), layout.toDeviceIndependentPixels(height)));
let labelWidth = layout.toDevicePixels(nativeSize.width);
if (this.textWrap) {