Skip to content
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

Fix ion-content or how to set ion-content has non scrollable (new feature or how to if already exists) #10291

Closed
peterpeterparker opened this issue Feb 2, 2017 · 4 comments

Comments

@peterpeterparker
Copy link
Contributor

peterpeterparker commented Feb 2, 2017

Ionic version: (check one with "x")
[X ] 2.x

I'm submitting a ... (check one with "x")
[X ] feature request

Current behavior:
I'm not able to fix my ion-content elements, each of them become scrollable.

I tried to use attribute "disable-scroll" on ion-content, no effect (saw that on the forum https://forum.ionicframework.com/t/scroll-false-in-ionic-2/64571/9)

I tried ion-fixed (as discussed there #5987), isn't recognize anymore.

Expected behavior:
I would like to be able to set an ion-content element as non scrollable

Related code:

<ion-content>
   <!-- stuffs non scrollable -->
</ion-content>

Other information:
Following tickets got in the same direction: #9110

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Your system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.0
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v7.2.1
Xcode version: Xcode 8.2.1 Build version 8C1002

@peterpeterparker peterpeterparker changed the title Fix ion-content (new feature or how to if already exist) Fix ion-content or how to set ion-content has non scrollable (new feature or how to if already exists) Feb 2, 2017
@peterpeterparker
Copy link
Contributor Author

peterpeterparker commented Feb 2, 2017

Sorry solved:

<ion-content>
    <div ion-fixed>
        <!-- stuffs non scrollable -->
    </div>
</ion-content>

and a css line to add width 100% to [ion-fixed]

@viveksinha9
Copy link

@peterpeterparker I did this but my div still scrolls with other content. Is this only thing you did to make it non scrollable?

@peterpeterparker
Copy link
Contributor Author

@viveksinha9 I don't reckon exactly because this issue is kind of almost one year old ;)

according my code, furthermore to adding the attribute ion-fixed to the div I have also added following piece of css

[ion-fixed] {
    height: 100%;
}

I hope this help

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 1, 2018

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants