mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix wrap-layout implementation for iOS
Fix layout-helper so that unit-tests can work again
This commit is contained in:
@@ -88,6 +88,13 @@ export class MyButton extends button.Button {
|
||||
get layoutTop(): number {
|
||||
return this._layoutTop;
|
||||
}
|
||||
|
||||
_getCurrentMeasureSpecs(): { widthMeasureSpec: number; heightMeasureSpec: number } {
|
||||
return {
|
||||
widthMeasureSpec: (<any>this)._oldWidthMeasureSpec,
|
||||
heightMeasureSpec: (<any>this)._oldHeightMeasureSpec
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export function assertMeasure(btn: MyButton, width: number, height: number, name?: string) {
|
||||
|
||||
Reference in New Issue
Block a user