Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows Phone screen height in PhoneGap app not 100%
    primarykey
    data
    text
    <p>I'm developing a Windows Phone app using PhoneGap/Cordova (though, I believe the problem I'm having makes the fact that it's PhoneGap irrelevant). No matter what I seem to do, the tag of my html pages doesn't fill the screen vertically. It looks fine when running the pages in Chrome or even IE Here is what it looks like on the Emulator, I added a blue border to the tag in the .css for emphasis of what's going on:</p> <p><img src="https://i.stack.imgur.com/KVC8s.png" alt="enter image description here"></p> <p>Here's the css for the body:</p> <pre><code> body{ border: 1px blue solid; } html, body{ height:100%; min-height:100% } </code></pre> <p>here's the footers css:</p> <pre><code>div.navbar_table_container { width: 100%; height: auto; position: absolute; bottom: 0; background-image:url(images/bottom-nav.png); background-size:100% 100%; background-repeat:no-repeat; text-align: center; } </code></pre> <p>and, as it may be important, here's the xaml file:</p> <pre><code>&lt;phone:PhoneApplicationPage x:Class="CordovaWP8_2_7_01.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" FontFamily="{StaticResource PhoneFontFamilyNormal}" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}" Background="White" SupportedOrientations="Portrait" Orientation="Portrait" shell:SystemTray.IsVisible="True" d:DesignHeight="820" d:DesignWidth="480" xmlns:my="clr-namespace:WPCordovaClassLib"&gt; &lt;Grid x:Name="LayoutRoot" Background="Transparent" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="*"/&gt; &lt;/Grid.RowDefinitions&gt; &lt;my:CordovaView HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="CordovaView" VerticalAlignment="Stretch" /&gt; &lt;Image Source="SplashScreenImage.jpg" x:Name="SplashImage" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"&gt; &lt;Image.Projection&gt; &lt;PlaneProjection x:Name="SplashProjector" CenterOfRotationX="0"/&gt; &lt;/Image.Projection&gt; &lt;/Image&gt; &lt;/Grid&gt; &lt;/phone:PhoneApplicationPage&gt; </code></pre> <p>an important note is that it works the way I want it to in Chrome, IE, and when I run it as an android app. </p> <p>The closest question to mine that I could find was <a href="https://stackoverflow.com/questions/16355253/phonegap-windows-phone-gap-space-bottom">Phonegap Windows Phone gap space bottom</a> but the answer there doesn't help me.</p> <p>I've noticed recently that when I run the same code off of a web server and access it using IE on a windows phone, it looks fine. However, I did notice that whenever an Alert was shows on the phone, the address bar of IE goes away and leaves behind the EXACT same gap from the bottom of the web content to the bottom of the phone as the native app is always showing. </p> <p>So, that leads me to believe that, even though it's an "app", if it's running html and javascript, the phone leaves space for an address bar, even though it's never used. </p> <p>Any help or insight would be greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload