mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Items now appear, but they should initially shrink and they don't Add 15-ish tests for flexbox layout Port reasonable flexbox test set Fixing issues, adding unit tests Moved from .tsx to .ts and used our ui/builder.parse
25 lines
584 B
TypeScript
25 lines
584 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.
|
|
}
|
|
}
|