-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Feature request: allow fixed content to be above scrollable content #9071
Comments
Well, that's not the expected behavior at all. Fixed and scrollable elements does not share the same layout, so they can't affect each others. Also, ion-fixed does not have to be at the top left, it can be at any position. For example bottom right: |
I am not telling it should be at top left. If you put this (my) ion-fixed after the scrollable part, The behaviour will stay the same. as it's before but in the down part of the screen. I can understand which behaviour you tell. Like fab-button who stay up even if screen is scrolled. And I suppose you will tell me "you can put your fixed cotent code in ion-header or ion-footer.
|
Here an other plunkr to show expected behaviour. |
I have the exact same issue, Using danielmm trick is a hack. I followed all the links in this post as well as searched on other posts. It seems like it should function properly out of the box, but it doesn't. Did you find a better way to fix it? |
I've had to create a component to fix this, but it's not perfect:
|
Reopening as a feature request, see my comment here: #5987 (comment) |
Would really love to see this feature in place as well. Edit Here is another solution I hacked up given some help from others examples
|
@spartanace1024 Thomas! I applied your solution and on the template I set |
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there. If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know! Thank you for using Ionic! |
Issue moved to: ionic-team/ionic-v3#138 |
Short description of the problem:
When I use ion-fixed attribut in ion-content it fixed the content but it's overlaped with the following element and start at the same position below the ion-header
What behavior are you expecting?
points 2 and 3 depends on elements. Here it'ss the case for a div, the div, should stay a div.
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
To fix it, i use the trick of danielmm in https://forum.ionicframework.com/t/scroll-false-in-ionic-2/64571/12?u=mse . This should be more automated.
Which Ionic Version? 1.x or 2.x
ionic 2 RC1
Plunker that shows an example of your issue
http://plnkr.co/edit/QOR7U3Q8yq2VjGwhIjTB?p=preview
Run
ionic info
from terminal/cmd prompt: (paste output below)Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Windows 8.1
Node Version: v5.0.0
The text was updated successfully, but these errors were encountered: