mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #666 from hdeshev/native-ts-compilation
Fix compile errors.
This commit is contained in:
@@ -6,7 +6,7 @@ import def = require("./layout-helper");
|
|||||||
|
|
||||||
var DELTA = 0.1;
|
var DELTA = 0.1;
|
||||||
|
|
||||||
class NativeButton extends android.widget.Button {
|
export class NativeButton extends android.widget.Button {
|
||||||
|
|
||||||
private owner: MyButton;
|
private owner: MyButton;
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ export class MyButton extends button.Button implements def.MyButton {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class NativeStackLayout extends org.nativescript.widgets.StackLayout {
|
export class NativeStackLayout extends org.nativescript.widgets.StackLayout {
|
||||||
|
|
||||||
private owner: MyStackLayout;
|
private owner: MyStackLayout;
|
||||||
|
|
||||||
@@ -179,4 +179,4 @@ export function assertLayout(btn: MyButton, left: number, top: number, width: nu
|
|||||||
export function dip(value: number): number {
|
export function dip(value: number): number {
|
||||||
var density = utils.layout.getDisplayDensity();
|
var density = utils.layout.getDisplayDensity();
|
||||||
return Math.floor(value * density);
|
return Math.floor(value * density);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user