Fix wrap-layout implementation for iOS

Fix layout-helper so that unit-tests can work again
This commit is contained in:
hshristov
2015-08-03 12:02:38 +03:00
parent e58506563a
commit 8d8cea103f
2 changed files with 9 additions and 2 deletions

View File

@@ -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) {