question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<ion-content> goes behind <ion-header> in a menu

See original GitHub issue

Short description of the problem:

<ion-content> goes behind <ion-header> in a menu causing the top menu items to be cut off.

Which Ionic Version? Ionic 2 beta.10

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

13reactions
ATakaSKYcommented, Oct 25, 2017

@falasvand I solved it by following the docs:https://ionicframework.com/docs/api/components/content/Content/

Declare this in your component: @ViewChild(Content) content: Content;

Then after getting the data back in the subscribe, I used: this.content.resize(); and it worked just fine.

5reactions
ATakaSKYcommented, Oct 22, 2017

I too am facing this problem. I have an ion-header and then ion-content. It works fine while debugging on the browser but the content hides behind the header when running in emulator or on a real device. This particularly happens when I add a new item however.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ion-content is cut off by the ion-header - ionic-v3 - Ionic Forum
I just upgraded my app to Beta 10. And as per instructions I've removed *navbar from the <ion-navbar> and wrapped it in a...
Read more >
<ion-content> goes behind <ion-header> in Ionic
This is my code in which <ion-content> is hiding behind <ion-header> . My ionic version is 3.19.1. enter image description here. How to...
Read more >
How to Create an Effective Ionic Menu With and Without a ...
Next comes the menu itself. ... Just after the menu component's ion-header , add an ion-content . And just inside that an ion-list...
Read more >
Ionic adding a side menu - Daily Dev Tips
... <ion-title class="menu-title">Menu</ion-title> </ion-toolbar> </ion-header> <ion-content> <ion-list> <ion-menu-toggle auto-hide="true"> ...
Read more >
Theming and Styling Ionic 5 Apps: Toolbar and Menu Example
You can change default Ionic 5 colors by going to the ... .menu-inner > ion-header, .menu-inner > ion-content, .menu-inner > ion-footer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found