Ionic 2 - How to remove gap between header and content?

时间:2017-06-09 12:56:10

标签: ionic2

I have an Ionic 2 side menu app. When I toggle the menu it pops out, and when toggeling it again it disappears but makes a gap between the header and the content (on the left side).

Does anyone know why this happens ?

Also after doing some interaction on the page (a button click), the gap disappears.

enter image description here

1 个答案:

答案 0 :(得分:0)

你是如何使用菜单的?你能包括你的代码吗? 如何关闭菜单功能隐藏菜单无间隙 for Examle:

constructor(public platform: Platform, public menu: MenuController)

openPage(page) { // close the menu when clicking a link from the menu this.menu.close(); this.nav.push(page.component); }