Files
NativeScript/tns-core-modules/ui/layouts/layout.ios.ts
Hristo Deshev 629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +02:00

25 lines
596 B
TypeScript

import { Layout as LayoutDefinition } from "./layout";
import { LayoutBase } from "./layout-base";
export * from "./layout-base";
export class Layout extends LayoutBase implements LayoutDefinition {
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.
}
}