mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(nav): change init zIndex to 100
This commit is contained in:
@ -1656,6 +1656,6 @@ const STATE_TRANS_LEAVE = 'trans_leave';
|
||||
const STATE_REMOVE = 'remove';
|
||||
const STATE_REMOVE_AFTER_TRANS = 'remove_after_trans';
|
||||
const STATE_FORCE_ACTIVE = 'force_active';
|
||||
const INIT_ZINDEX = 10;
|
||||
const INIT_ZINDEX = 100;
|
||||
|
||||
let ctrlIds = -1;
|
||||
|
@ -370,9 +370,9 @@ export function run() {
|
||||
nav._views = [view1, view2, view3];
|
||||
nav._cleanup();
|
||||
|
||||
expect(view1.zIndex).toEqual(10);
|
||||
expect(view2.zIndex).toEqual(11);
|
||||
expect(view3.zIndex).toEqual(12);
|
||||
expect(view1.zIndex).toEqual(100);
|
||||
expect(view2.zIndex).toEqual(101);
|
||||
expect(view3.zIndex).toEqual(102);
|
||||
});
|
||||
});
|
||||
|
||||
@ -575,7 +575,7 @@ export function run() {
|
||||
let enteringView = new ViewController();
|
||||
enteringView.setPageRef({});
|
||||
nav._setZIndex(enteringView, null, 'forward');
|
||||
expect(enteringView.zIndex).toEqual(10);
|
||||
expect(enteringView.zIndex).toEqual(100);
|
||||
});
|
||||
|
||||
it('should set zIndex 1 on second entering view', () => {
|
||||
|
Reference in New Issue
Block a user