I’m trying to hide a nav-bar and tabs (that are at the bottom) in a subpage I found a solution to use access css style and change the display to none .
I successfully hidden the nav-bar and tabs but the problem that it still there is white space in the subpage tableView and the subpage content is between two white spaces as you can see in the screenshot
How can I solve this issue ?
this is my code to hide the nav-bar and tabs
//get all tabs elements
if (document.querySelector('.tabbar')) {
this.tabBarElements = document.querySelectorAll('.tabbar.show-tabbar');
}
//get all toolbar elements
if (document.querySelector('.toolbar')) {
this.toolBarElements = document.querySelectorAll('.toolbar');
}
}
//hide all tabs and the header toolbar when enter page
ionViewWillEnter() {
if (this.tabBarElements) {
this.tabBarElements[0].style.display = 'none';
this.tabBarElements[1].style.display = 'none';
}
if (this.toolBarElements) {
this.toolBarElements[1].style.display = 'none';
}
}