Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Problem scroll error with ionic framework in input on ios iphone

$
0
0

@Aflaton wrote:

I have a form with ten fields with a fixed header and a scroll on the bottom.
If I use the standard method:
On Android, I have no problem.
On iPhone, it is not possible to scroll if you "swipe" with your finger on an input.

I found a method that works using the scrolls' scroll = 'true' "provided by Ionic but there is currently a bug when the keyboard is opened and then closed. The closure impacts the object "scroll" and makes any use of ionic scroll inoperative on the site

Page : form.html

    <ion-header-bar align-title="center" style = "background-color:transparent !important;background-image: none;border-bottom: none;border: 0px !important; top:2%;">

        <div ng-click="previousButton()" class = "backButtonImg"><img src="img/connexion.png" class="burger_icon"><i class = "backTitle">Retour</i></div>

        <buttons class = "logoHome">
          <a ng-click = "logoClick()" class="button button-clear" style="position: absolute;top: 0;right: 0;left: 0;margin: 0 50px;min-width: 30px;height: 43px;">
            <img src="img/1.svg" width="73" height="18" style = "margin-top: 15px;">
          </a>
        </buttons>
     </ion-header-bar>

<div class = "registerHeader" >
        <div class="inside">
            <div class="title">
               <h2>{{'CREEZ_VOTRE_COMPTE' | translate}}</h2>
                <p class="subtitle"><i style = "color : #c1002b">*</i>Champs obligatoires</p>
            </div>
    </div>
</div>
<ion-content id = "registerScrollT" class="register" has-header="false" scroll="true" style = "overflow: scroll !important; height:{{registerHeight}};">



    <div class = "registerButton">
      <button ng-click = "register()" class = "valider">valider</button>
    </div>



+*

I add this in app.js file :

*

$ionicPlatform.ready(function() {
if(window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

        window.cordova.plugins.Keyboard.disableScroll(true);
        cordova.plugins.Keyboard.disableScroll(true);
        cordova.plugins.Keyboard.close();
        cordova.plugins.Keyboard.show();
    }
    if(window.StatusBar) {
        // org.apache.cordova.statusbar required
        StatusBar.styleDefault();
        //cordova.plugins.Keyboard.close();
    }
});

now just i developing a simple website note a an app mobile so i can't use cordova plugiin,
I really need help, either of you can advise me? For two weeks I'm working on."

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>