mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
cache window dimensions
This commit is contained in:
@@ -263,7 +263,7 @@ export function ionicBootstrap(rootComponentType, config) {
|
||||
config = new IonicConfig(config);
|
||||
}
|
||||
|
||||
let platform = new IonicPlatform(window);
|
||||
let platform = new IonicPlatform();
|
||||
|
||||
// create the base IonicApp
|
||||
let app = initApp(window, document, config, platform);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Menu} from '../menu';
|
||||
import {Menu} from './menu';
|
||||
import {SlideEdgeGesture} from 'ionic/gestures/slide-edge-gesture';
|
||||
|
||||
|
||||
@@ -4,12 +4,8 @@
|
||||
// The content slides over to reveal the menu underneath.
|
||||
// The menu itself, which is under the content, does not move.
|
||||
|
||||
ion-menu[type=reveal] {
|
||||
transform: translate3d(-9999px, 0px, 0px);
|
||||
|
||||
&.show-menu {
|
||||
transform: translate3d(0px, 0px, 0px);
|
||||
}
|
||||
ion-menu[type=reveal].show-menu {
|
||||
transform: translate3d(0px, 0px, 0px);
|
||||
}
|
||||
|
||||
.menu-content-reveal {
|
||||
@@ -26,7 +22,6 @@ ion-menu[type=reveal] {
|
||||
ion-menu[type=overlay] {
|
||||
z-index: $z-index-menu-overlay;
|
||||
box-shadow: $menu-shadow;
|
||||
transform: translate3d(-9999px, 0px, 0px);
|
||||
|
||||
backdrop {
|
||||
display: block;
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Menu} from '../menu';
|
||||
import {Menu} from './menu';
|
||||
import {Animation} from 'ionic/animations/animation';
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ ion-menu {
|
||||
flex-direction: column;
|
||||
|
||||
background: $menu-background;
|
||||
|
||||
transform: translate3d(-9999px, 0px, 0px);
|
||||
}
|
||||
|
||||
ion-menu[side=right] {
|
||||
|
||||
@@ -4,7 +4,7 @@ import {Ion} from '../ion';
|
||||
import {IonicApp} from '../app/app';
|
||||
import {IonicConfig} from '../../config/config';
|
||||
import {IonicComponent} from '../../config/annotations';
|
||||
import * as gestures from './extensions/gestures';
|
||||
import * as gestures from './menu-gestures';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user