Search code examples
cordovaextjswindows-phone-8.1sencha-touch

Phonegap wp8.1 app pushes body out of CordovaView


I am developing an app using phonegap 3.X + sencha touch 2.3.1

When the softkeyboard is shown (tap to foucus an input/textarea), the body moves up. But when I hide the softkeyboard, the body didn't restore to normal.

enter image description here

enter image description here

enter image description here

Any of your help will be appreciated!


Solution

  • This issue only occurs if you hide the status bar (shell:SystemTray.IsVisible="False"), I have a workaround for this issue, modify this file \platforms\wp8\MainPage.xaml ,

    change :

    <my:CordovaView HorizontalAlignment="Stretch" 
                   Margin="0,0,0,0"  
                   x:Name="CordovaView" 
                   VerticalAlignment="Stretch" />
    

    to:

    <my:CordovaView HorizontalAlignment="Stretch" 
                   Margin="1,0,0,0"  
                   x:Name="CordovaView" 
                   VerticalAlignment="Stretch" />