-
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
Entire view can be slided up when ion-content and ion-footer-bar are used together #1218
Comments
Screencast: https://www.dropbox.com/s/dmwf7og55yq5wph/1.mov Just in case it wasn't clear from the video: in the second half of the video I remove ion-footer-bar from the partial and recompile the app and run it from Xcode. |
Thanks @CoenWarmer - looking at it. |
Got it to break with ion-pane too - more minimal use case. Figuring it out now. |
Thanks @ajoslin! I believe you can stop the scrolling by setting position fixed on .pane, but I discovered that makes transition animations between views break on some Android versions (4.2 if I'm not mistaken). |
Fixed on my end on iOS by adding Unfortunately, Travis CI is down for today so the nightly build is not going to update yet. Could you try adding the css rule on your end and lemme know? |
On it! |
Just tested on iOS7.1, Android 4.4.2, 4.3 and 4.1.1. Looking good! Thanks @ajoslin! |
Awesome :-) |
Hi guys, we believe this fix created another problem on our product. If you have a side menu within a modal I created a codepen for you to check out: http://codepen.io/shprink/pen/ugFCI Once you have opened the modal, remove the Do not ask me why we want a side menu within a modal... We just like it that way :P Thanks for your time, |
Adding overflow:hidden created this issue: #1278 |
Going to look into using another solution because adding overflow:hidden causes other issues. |
Any progress on that @adamdbradley ? The addition of I use native scrolling on my app and I've tested changing Not all of the old issues are back though, as some of them were fixed through the change I suggested on #1281. |
This should be fixed in beta.5b. We fixed the bugs caused by overflow:hidden on iOS by removing -webkit-backface-visibility:hidden on scrollViews. Weird? Yes. |
The problem is back... same codepen (updated to beta.6) http://codepen.io/shprink/pen/ugFCI |
I see the issue too (Beta 6, on device) |
I've solved this issue by setting this in my config.xml (my project have been init by generator-ionic)
|
@seyuf Yes! Thanks for posting this. That was driving me crazy. Setting "DisallowOverscroll" to true in Cordova's config.xml worked for me. |
+1 for @seyuf tip! |
I'm still experiencing this problem. It seems to work fine on the simulator, but once on a device, the over-scroll appears. |
I found a work-around for this. First, I added a class to the ion-nav-view in index.html -
Then I added the following snippet of css. I believe the key here is fixing the position, and leaving a margin for the StatusBar -
At this point, the device scroll is properly locked down where it's not intended. |
@blakerego I think this might solve your issue. Try adding the "has-header" class on your directives: |
@seyuf The StatusBar was not the main issue I was trying to solve - it was more that whenever I deployed the app, the entire screen would move around if dragged (when using |
@blakerego Humm i see, the issue is may be linked to the os version on the device. Anyway, could you give your specs so that people with the same issue can apply your solution (os version, device...)? |
Sure, I'm on an iPod-touch, 5th Generation running iOS version 8.3 (12F69). Other members on my team also experienced this when deploying our app to their iPhones. Note that I'm also using the 'org.apache.cordova.statusbar' cordova plugin, in case that affects anything. |
Solution: when using scroll="true" a div is auto generated with a class="scroll" I think that class as an height try make the height bigger. |
Thanks @djorocas , you're correct. The problem is that the inner scroll div did not have the correct height, so scrolling failed. I've created a small directive that you can use on the ion-content element that fixes this issue. It takes the parent's height, and applies it to the child div - I've set my 'cons' to 53 + 60 px, but this will probably vary, depending on your situation.
The markup will look like - |
I have tried all of the suggestions here and this problem is still occurring, seems that no matter what, the "page" is always "longer" than the "screen" and therefore it can be scrolled a bit putting a part of the header under the status bar. This is making the APP look and feel like a webpage instead of a native app. |
I have the same issue @17holeinone if you find a solution please let me know. |
I managed to fix this by tweaking some of the values in the ionic.css file, namely .has-header, .has-subheader and .has-tabs-tops I also changed the height of the .view-container to 96% instead of 100% and that helped. This wasn't perfect ... In any case I am not in need of this anymore since I decided to change the app a bit and started using a Side Menu for navigation instead of tabs ... |
phew, this is quite a big but, on Android the issue is also present but far less noticable there is only a slight drag shadow, but it shouldnt be there as well. Anyone got a good fix for this one?
|
Hi, for anybody still stumbling over this, we just solved this in our own meteoric-fork of ionic by setting the body to position:relative. For some reason that wasn't set and setting it did fix this for us. Yay! :D |
Just ran into this issue.. None of the above worked for me... any suggestions?! |
Okay, somehow I fixed this by setting:
Instead of |
@1BJK903 It's fixed for now 🤣. Thanks mate |
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. |
First off congrats on the release of beta2! Ionic keeps improving and that's great.
I just upgraded my project to beta2 and I am seeing some issues. One I reported on the forums in the topic about testing the new taps (but that topic seems to have been removed? I can't find it anymore on the forum) is this:
When using ion-content and ion-footer-bar in one partial, it is possible to drag the whole view up and down, sliding everything (ion-header-bar, ion-content and ion-footer-bar under the status bar for about 5-10 pixels.
I'm using this partial:
Steps to reproduce:
When you remove ion-footer-bar, the whole view isn't draggable anymore (as it should be).
Version: 1.0.0 beta2
Platform: Everything that uses Cordova
The text was updated successfully, but these errors were encountered: