Cordova + Android - android-windowSoftInputMode adjustPan not working

后端 未结 6 1239
日久生厌
日久生厌 2021-02-01 17:56

I\'m using Cordova 5.4.0 and I have this in my config.xml:




        
6条回答
  •  眼角桃花
    2021-02-01 18:17

    I found a simple solution using the edit-config tag which is built into cordova since v6.4.0. My config.xml now looks like this and the keyboard no longer resizes the viewport!

    
    
        HelloWorld
        
        
            
        
        
    
    

    Hint: When experimenting to get this working, I made some accidental changes to my AndroidManifest.xml. You can reset this easily be removing and re-adding the android platform to your cordova project like so: cordova platform rm android && cordova platform add android.

提交回复
热议问题