cache window dimensions

This commit is contained in:
Adam Bradley
2015-09-13 22:34:23 -05:00
parent dc1c997f52
commit 28c8d001e6
12 changed files with 33 additions and 36 deletions

View File

@@ -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);

View File

@@ -1,4 +1,4 @@
import {Menu} from '../menu';
import {Menu} from './menu';
import {SlideEdgeGesture} from 'ionic/gestures/slide-edge-gesture';

View File

@@ -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;

View File

@@ -1,4 +1,4 @@
import {Menu} from '../menu';
import {Menu} from './menu';
import {Animation} from 'ionic/animations/animation';

View File

@@ -22,6 +22,8 @@ ion-menu {
flex-direction: column;
background: $menu-background;
transform: translate3d(-9999px, 0px, 0px);
}
ion-menu[side=right] {

View File

@@ -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';
/**