base url used when loading local files in web-view

Fix for #613
This commit is contained in:
Vladimir Enchev
2015-08-25 15:21:56 +03:00
parent abf7fbddbc
commit 0c883395df
7 changed files with 32 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
body {
background-color: green;
}

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>MyTitle</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="test.css">
</head>
<body>
<span style="color:red">Test</span>
</body>
</html>

View File

@@ -2,7 +2,7 @@
<ListView loaded="loaded">
<ListView.itemTemplate>
<WebView loaded="onLoaded" loadStarted="onLoadStarted" loadFinished="onLoadFinished" unloaded="onUnloaded"
url="http://www.bbc.com/" minHeight="250" />
src="http://www.bbc.com/" minHeight="250" />
</ListView.itemTemplate>
</ListView>
</Page>

View File

@@ -0,0 +1,6 @@
<Page>
<GridLayout>
<WebView src="~/test.html" />
</GridLayout>
</Page>