Android White Background when keyboard fades away

后端 未结 7 1064
遥遥无期
遥遥无期 2021-02-18 14:34

Video of the problem from a different user but its the same

http://imgur.com/ca2cNZv

I have a background image set as follows :

  .pane {
  backg         


        
7条回答
  •  盖世英雄少女心
    2021-02-18 14:50

    Add the following code in your 'App.js'. add

    $window.addEventListener('native.keyboardhide', function (event) {
        $rootScope.$broadcast('native.keyboardhide', event);
    });
    

    when app.run() method call with $window and $rootScope dependency. also, add

        if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
            cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
            cordova.plugins.Keyboard.disableScroll(true);
        }
    

    in $ionicPlatform.ready().

    please ensure that your code is updated by inspecting your app. If it's not updated then try to remove and add platform and rebuild your app.

提交回复
热议问题