New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug[core, v5]: ion-content height 100% not inherited #20185
Comments
Thanks for the issue. Can you try the following dev build and let me know if it resolves your issue:
|
@liamdebeasi thank you for your feedback. same problem with build |
Hmm maybe I'm not quite sure what you are trying to do. From what I understand, you are expecting the scrollable content to take up 100% of the available containing height by default. From there, you want to be able to control the overall dimensions of |
@liamdebeasi yes
here a screenshot from our editor in prod with v4: |
Thanks for the follow up. Try this dev build:
|
super @liamdebeasi I checked both the sample repo and our app. |
I'm noticing the problem as well @liamdebeasi also with build all my zero states don't center on the page anymore 😦 |
@corysmc Please try |
should have refreshed the page before submitting my comments 😄 Thanks @liamdebeasi! |
Thanks! This issue has been resolved via #20194. We will be putting out a new beta soon that has this fix. |
Thank you Liam 👍 |
@liamdebeasi @peterpeterparker Unfortunately, this fix breaks elements with "position: sticky" inside the ion-content scroll-content div. Now that the height is set to 100%, once the div scrolls off screen, any sticky items (such as floating buttons/widgets/etc) scroll off screen with it. This occurs when the height of the content contained inside the scroll-element exceeds 100% of the ion-content/viewport. IMO: This should probably use the 'min-height: 100%' property, instead of 'height'. Sample repo incoming. |
@lincolnthree Can you open a new issue? Thanks! |
Sure thing. |
@liamdebeasi Done. |
Hello, the problem still persists with the latest version 5.0.0-rc.0. Any idea ? regards, |
@LOUNNAS Please open a new issue. Thanks! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
Ionic version:
[x] 5.x
Current behavior:
In Ionic v5.x (current status, tested with
@next
andmaster
) it will not be possible anymore to assign anheight: 100%
to the slotted element of theion-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:
Related code:
See demo repo
Other information:
Demo of our application (gif):
Screenshots of the provided repo:
And a screenshot of the same repo with Ionic v4:
The text was updated successfully, but these errors were encountered: