File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ import {
1313@Component ( {
1414 selector : "modal-content" ,
1515 template : `
16- <StackLayout margin="24" horizontalAlignment="center" verticalAlignment="center">
17- <Label [text]="prompt"></Label>
18- <StackLayout orientation="horizontal" marginTop="12">
19- <Button text="ok" (tap)="close('OK')"></Button>
20- <Button text="cancel" (tap)="close('Cancel')"></Button>
16+ <GridLayout>
17+ <StackLayout margin="24" horizontalAlignment="center" verticalAlignment="center">
18+ <Label [text]="prompt"></Label>
19+ <StackLayout orientation="horizontal" marginTop="12">
20+ <Button text="ok" (tap)="close('OK')"></Button>
21+ <Button text="cancel" (tap)="close('Cancel')"></Button>
22+ </StackLayout>
2123 </StackLayout>
22- </StackLayout >
24+ </GridLayout >
2325 `
2426} )
2527export class ModalContentComponent {
Original file line number Diff line number Diff line change @@ -23,6 +23,6 @@ export class NavigationInfoComponent {
2323 update ( ) {
2424 // If history is cleared: frameStack = 0, locationStack = 1
2525 this . frameStack = this . frame . backStack . length ;
26- this . locationStack = this . strategy . _getStates ( ) . length ;
26+ this . locationStack = this . strategy . _getStates ( ) [ "primary" ] . length ;
2727 }
2828}
You can’t perform that action at this time.
0 commit comments