mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +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 {
|
public onMinWidthMinHeight(args: { eventName: string, object: any }): void {
|
||||||
var view: view.View = <view.View>args.object;
|
var view: view.View = <view.View>args.object;
|
||||||
if (view.minWidth !== 95) {
|
if (view.minWidth !== 105) {
|
||||||
view.minWidth = 95;
|
view.minWidth = 105;
|
||||||
view.minHeight = 55;
|
view.minHeight = 55;
|
||||||
} else {
|
} else {
|
||||||
view.minWidth = 0;
|
view.minWidth = 0;
|
||||||
@ -105,8 +105,8 @@ export class ViewModel extends observable.Observable {
|
|||||||
|
|
||||||
// MinWidthMinHeight
|
// MinWidthMinHeight
|
||||||
child = layout.getViewById("minWidthMinHeight");
|
child = layout.getViewById("minWidthMinHeight");
|
||||||
if (child.minWidth !== 95) {
|
if (child.minWidth !== 105) {
|
||||||
child.minWidth = 95;
|
child.minWidth = 105;
|
||||||
child.minHeight = 55;
|
child.minHeight = 55;
|
||||||
} else {
|
} else {
|
||||||
child.minWidth = 0;
|
child.minWidth = 0;
|
||||||
|
Reference in New Issue
Block a user