mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
feat(app): adds _forceStatusbarPadding for ionic lab
This commit is contained in:
@ -2,3 +2,7 @@
|
|||||||
html.plt-mobile ion-app {
|
html.plt-mobile ion-app {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ion-app.force-statusbar-padding {
|
||||||
|
--ion-safe-area-top: 20px;
|
||||||
|
}
|
||||||
|
@ -31,6 +31,7 @@ export class App implements ComponentInterface {
|
|||||||
return {
|
return {
|
||||||
class: {
|
class: {
|
||||||
'ion-page': true,
|
'ion-page': true,
|
||||||
|
'force-statusbar-padding': this.config.getBoolean('_forceStatusbarPadding')
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,6 @@
|
|||||||
menu.open('start');
|
menu.open('start');
|
||||||
}
|
}
|
||||||
function openEnd() {
|
function openEnd() {
|
||||||
debugger;
|
|
||||||
console.log('Open end menu');
|
console.log('Open end menu');
|
||||||
menu.open('end');
|
menu.open('end');
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,8 @@ export interface IonicConfig {
|
|||||||
popoverLeave?: string;
|
popoverLeave?: string;
|
||||||
toastLeave?: string;
|
toastLeave?: string;
|
||||||
pickerLeave?: string;
|
pickerLeave?: string;
|
||||||
|
|
||||||
|
_forceStatusbarPadding?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setupConfig(config: IonicConfig) {
|
export function setupConfig(config: IonicConfig) {
|
||||||
|
Reference in New Issue
Block a user