mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Less than 30 erros left, let's hope it still works Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills Roll back some changes involved in separating UIEvent for dom and ios Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
24 lines
583 B
TypeScript
24 lines
583 B
TypeScript
import definition = require("ui/layouts/layout");
|
|
import layoutBase = require("ui/layouts/layout-base");
|
|
|
|
export class Layout extends layoutBase.LayoutBase implements definition.Layout {
|
|
|
|
private _view: UIView;
|
|
|
|
constructor() {
|
|
super();
|
|
this._view = UIView.new();
|
|
}
|
|
|
|
get ios(): UIView {
|
|
return this._view;
|
|
}
|
|
|
|
get _nativeView(): UIView {
|
|
return this._view;
|
|
}
|
|
|
|
public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void {
|
|
// Don't call super because it will measure the native element.
|
|
}
|
|
} |