Skip to content
Browse files

cleanup or meta-tags + RootVisual Grid name for plugin use

  • Loading branch information...
1 parent 949bb7d commit 4030123d66a1d5597f984dd5963080fe18b337b2 @purplecabbage purplecabbage committed Oct 19, 2011
Showing with 4 additions and 14 deletions.
  1. +1 −6 example/MainPage.xaml
  2. +1 −1 example/www/index.html
  3. +0 −1 framework/WP7GapClassLib.csproj
  4. +2 −6 template/www/index.html
View
7 example/MainPage.xaml
@@ -11,15 +11,10 @@
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
shell:SystemTray.IsVisible="True" d:DesignHeight="768" d:DesignWidth="480" xmlns:my="clr-namespace:WP7GapClassLib;assembly=WP7GapClassLib">
- <Grid>
+ <Grid x:Name="LayoutRoot" >
<my:PGView Name="pGView1" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"></my:PGView>
- <!--<phone:WebBrowser x:Name="GapBrowser"
- Loaded="GapBrowser_Loaded"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- IsScriptEnabled="True" />-->
</Grid>
View
2 example/www/index.html
@@ -4,7 +4,7 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
- <meta name="Viewport" content="width=480" />
+ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
<title>PhoneGap - WP7 : Proof of concept</title>
<link rel="stylesheet" type="text/css" href="master.css"/>
View
1 framework/WP7GapClassLib.csproj
@@ -58,7 +58,6 @@
</ItemGroup>
<ItemGroup>
<Compile Include="PhoneGap\Commands\AudioPlayer.cs" />
- <Compile Include="PhoneGap\Commands\ChildBrowserCommand.cs" />
<Compile Include="PhoneGap\Commands\Compass.cs" />
<Compile Include="PhoneGap\Commands\Media.cs" />
<Compile Include="PhoneGap\DOMStorageHelper.cs" />
View
8 template/www/index.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <meta name="viewport" content="width=320; user-scalable=no" />
+ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>PhoneGap WP7</title>
@@ -28,11 +28,7 @@
<script type="text/javascript">
-
- function init()
- {
document.addEventListener("deviceready",onDeviceReady,false);
- }
// once the device ready event fires, you can safely do your thing! -jm
function onDeviceReady()
@@ -46,7 +42,7 @@
</head>
- <body onLoad="init();">
+ <body>
<h1>Hello PhoneGap</h1>
<div id="welcomeMsg"></div>
</body>

0 comments on commit 4030123

Please sign in to comment.
Something went wrong with that request. Please try again.