fix(menu): standalone

This commit is contained in:
Manu Mtz.-Almeida
2018-02-20 18:40:43 +01:00
parent 8ad14520af
commit 9c9bbe7fd3
10 changed files with 41 additions and 40 deletions

View File

@@ -165,12 +165,20 @@ ion-app {
// Page Container Structure
// --------------------------------------------------
.ion-page,
.page-inner {
.ion-page {
@include position(0);
position: absolute;
z-index: $z-index-page-container;
display: flex;
flex-direction: column;
justify-content: space-between;
width: 100%;
height: 100%;
contain: layout size style;
}
.hide-page {

View File

@@ -20,6 +20,10 @@ view component.
boolean
If true and the content does not cause an overflow scroll, the scroll interaction will cause a bounce.
If the content exceeds the bounds of ionContent, nothing will change.
Note, the does not disable the system bounce on iOS. That is an OS level setting.
#### fullscreen
@@ -36,6 +40,10 @@ to transparent.
boolean
If true and the content does not cause an overflow scroll, the scroll interaction will cause a bounce.
If the content exceeds the bounds of ionContent, nothing will change.
Note, the does not disable the system bounce on iOS. That is an OS level setting.
#### fullscreen

View File

@@ -16,6 +16,7 @@ You can loading icon or loading text with the component's properties.
<!-- Auto Generated Below -->
## Properties
#### loadingSpinner
@@ -24,12 +25,14 @@ string
An animated SVG spinner that shows while loading.
#### loadingText
string
Optional text to display while loading.
## Attributes
#### loading-spinner
@@ -38,12 +41,15 @@ string
An animated SVG spinner that shows while loading.
#### loading-text
string
Optional text to display while loading.
---
_Built with [StencilJS](https://stenciljs.com/)_
----------------------------------------------
*Built with [StencilJS](https://stenciljs.com/)*

View File

@@ -24,7 +24,10 @@ ion-menu.show-menu {
position: absolute;
display: block;
display: flex;
flex-direction: column;
justify-content: space-between;
width: $menu-width;
height: 100%;

View File

@@ -444,7 +444,7 @@ export class Menu {
render() {
return ([
<div class='menu-inner page-inner' ref={el => this.menuInnerEl = el}>
<div class='menu-inner' ref={el => this.menuInnerEl = el}>
<slot></slot>
</div>,
@@ -468,7 +468,7 @@ export class Menu {
'type': 'pan',
'direction': 'x',
'threshold': 10,
'attachTo': 'body',
'attachTo': 'window',
'disableScroll': true,
'block': this.gestureBlocker
}}/>

View File

@@ -15,19 +15,6 @@ ion-nav {
contain: layout size style;
}
.ion-page {
@include position(0);
position: absolute;
z-index: $z-index-page-container;
width: 100%;
height: 100%;
contain: layout size style;
}
.nav-decor {
display: none;
}

View File

@@ -1,18 +0,0 @@
// Util
// --------------------------------------------------
@import "../../themes/util";
ion-page {
@include position(0);
position: absolute;
z-index: $z-index-page-container;
width: 100%;
height: 100%;
contain: layout size style;
}

View File

@@ -3,7 +3,6 @@ import { Component } from '@stencil/core';
@Component({
tag: 'ion-page',
styleUrl: 'page.scss'
})
export class Page {

View File

@@ -11,6 +11,10 @@
boolean
If true and the content does not cause an overflow scroll, the scroll interaction will cause a bounce.
If the content exceeds the bounds of ionScroll, nothing will change.
Note, the does not disable the system bounce on iOS. That is an OS level setting.
#### mode
@@ -38,6 +42,10 @@ string
boolean
If true and the content does not cause an overflow scroll, the scroll interaction will cause a bounce.
If the content exceeds the bounds of ionScroll, nothing will change.
Note, the does not disable the system bounce on iOS. That is an OS level setting.
#### mode

View File

@@ -184,7 +184,7 @@ export class Tabbar {
<ion-icon name='arrow-dropleft'/>
</ion-button>,
<ion-scroll ref={(scrollEl: HTMLIonScrollElement) => this.scrollEl = scrollEl}>
<ion-scroll forceOverscroll={false} ref={(scrollEl: HTMLIonScrollElement) => this.scrollEl = scrollEl}>
{tabButtons}
{ionTabbarHighlight}
</ion-scroll>,