mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Update layouts test page.
This commit is contained in:
@ -19,8 +19,8 @@ export class ViewModel extends observable.Observable {
|
||||
|
||||
public onMinWidthMinHeight(args: { eventName: string, object: any }): void {
|
||||
var view: view.View = <view.View>args.object;
|
||||
if (view.minWidth !== 95) {
|
||||
view.minWidth = 95;
|
||||
if (view.minWidth !== 105) {
|
||||
view.minWidth = 105;
|
||||
view.minHeight = 55;
|
||||
} else {
|
||||
view.minWidth = 0;
|
||||
@ -105,8 +105,8 @@ export class ViewModel extends observable.Observable {
|
||||
|
||||
// MinWidthMinHeight
|
||||
child = layout.getViewById("minWidthMinHeight");
|
||||
if (child.minWidth !== 95) {
|
||||
child.minWidth = 95;
|
||||
if (child.minWidth !== 105) {
|
||||
child.minWidth = 105;
|
||||
child.minHeight = 55;
|
||||
} else {
|
||||
child.minWidth = 0;
|
||||
|
Reference in New Issue
Block a user