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.

bug[core, v5]: ion-content height 100% not inherited

See original GitHub issue

Bug Report

Ionic version: [x] 5.x

Current behavior: In Ionic v5.x (current status, tested with @next and master) it will not be possible anymore to assign an height: 100% to the slotted element of the ion-content respectively such property will be ignored.

This would for example have for effect to break the GUI of our editor (see attached Gif).

The root cause of the issue, I think, is the recent introduction of the ion-content shadowed child <div id="scroll-content"/> (see related commit)

Expected behavior: Still being able to use height: 100% for the content with Ionic v5.x.

Steps to reproduce:

git clone https://github.com/peterpeterparker/ionic-v5beta-content-height.git
cd ionic-v5beta-content-height
npm install
npm run start

Related code:

See demo repo

Other information:

Demo of our application (gif):

ezgif com-video-to-gif-2

Screenshots of the provided repo:

Capture d’écran 2020-01-11 à 18 14 21 Capture d’écran 2020-01-11 à 18 14 28

And a screenshot of the same repo with Ionic v4:

Capture d’écran 2020-01-12 à 08 35 12

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
liamdebeasicommented, Jan 13, 2020

Thanks! This issue has been resolved via https://github.com/ionic-team/ionic/pull/20194. We will be putting out a new beta soon that has this fix.

2reactions
corysmccommented, Jan 13, 2020

should have refreshed the page before submitting my comments 😄 The latest build works now 5.0.0-dev.202001131622.bfc6420

Thanks @liamdebeasi!

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS: height 100% ignored in ion-content - Ionic Forum
That means: The parent element does not seem to have a height so the 100% height of my div element is ignored. Does...
Read more >
ion-content height 100% bigger than screen - Stack Overflow
I need to build a single page vertically responsive, it needs to be full screen and no scroll. I've tried doing ion-content: {...
Read more >
Ion-Content Height Is Not Contain In A Component - ADocLib
Community forum GitHub Education GitHub Stars program bug[core v5]: ioncontent height 100% not inherited #20185 element of the ioncontent respectively such ...
Read more >
Webflow Basics | Greg Rog - Skillshare
This is a great introduction for those of you who have not dealt with Webflow yet, want to establish your foundations, or create...
Read more >
NEOCUCULLOGRAPTINAE N. SUBFAM. (GRAPTOLITHINA ...
which enable subdivision of their lower member into 5 new graptolite zones. Occur- ... of a genetic polymorphism and not a permanent specific...
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