Skip to content

Commit

Permalink
feat(app): adds _forceStatusbarPadding for ionic lab
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Sep 25, 2018
1 parent 8796f9f commit 0379977
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/src/components/app/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
html.plt-mobile ion-app {
user-select: none;
}

ion-app.force-statusbar-padding {
--ion-safe-area-top: 20px;
}
1 change: 1 addition & 0 deletions core/src/components/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class App implements ComponentInterface {
return {
class: {
'ion-page': true,
'force-statusbar-padding': this.config.getBoolean('_forceStatusbarPadding')
}
};
}
Expand Down
1 change: 0 additions & 1 deletion core/src/components/menu/test/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
menu.open('start');
}
function openEnd() {
debugger;
console.log('Open end menu');
menu.open('end');
}
Expand Down
2 changes: 2 additions & 0 deletions core/src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export interface IonicConfig {
popoverLeave?: string;
toastLeave?: string;
pickerLeave?: string;

_forceStatusbarPadding?: boolean;
}

export function setupConfig(config: IonicConfig) {
Expand Down

0 comments on commit 0379977

Please sign in to comment.