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 {
13
13
@Component ( {
14
14
selector : "modal-content" ,
15
15
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>
21
23
</StackLayout>
22
- </StackLayout >
24
+ </GridLayout >
23
25
`
24
26
} )
25
27
export class ModalContentComponent {
Original file line number Diff line number Diff line change @@ -23,6 +23,6 @@ export class NavigationInfoComponent {
23
23
update ( ) {
24
24
// If history is cleared: frameStack = 0, locationStack = 1
25
25
this . frameStack = this . frame . backStack . length ;
26
- this . locationStack = this . strategy . _getStates ( ) . length ;
26
+ this . locationStack = this . strategy . _getStates ( ) [ "primary" ] . length ;
27
27
}
28
28
}
You can’t perform that action at this time.
0 commit comments