Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit a344fb0

Browse files
committed
Merge pull request #12 from jdm135/master
Fix scrolling bug on cp/app.
2 parents 4ef184f + 174a129 commit a344fb0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

widget/index.html

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,7 @@
2727
</head>
2828
<body class="no-scroll" ng-controller="webviewPluginCtrl" ng-cloak>
2929
<div class="scrollable">
30-
<iframe ng-src="{{ url }}" ng-if="data.content.openInApp && !isWebPlateform" style="height:100%; width:1px; min-width:100%;" scrolling="yes" iframe-onload="iframeLoadedCallBack()" id="webviewIframe"></iframe>
31-
</div>
32-
<div class="text-center link-verified" ng-if="data && data.content.url && isWebPlateform">
33-
<div class="col-md-12">
34-
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
35-
<p>
36-
We were able to verify the link you provided. The link will only appear on your mobile device.
37-
</p>
38-
</div>
30+
<iframe ng-src="{{ url }}" ng-if="data.content.openInApp" style="height:100%; width:1px; min-width:100%;" scrolling="{{isWebPlateform ? 'yes':'no'}}" iframe-onload="iframeLoadedCallBack()" id="webviewIframe"></iframe>
3931
</div>
4032
<script>
4133
var webviewPluginApp = angular.module('webviewPlugin', []);
@@ -64,7 +56,7 @@
6456
$scope.data = result.data;
6557
$scope.url = $sce.trustAsResourceUrl(content.url);
6658
buildfire.getContext(function (err, context) {
67-
$scope.isWebPlateform = false;//(context.device.platform == "web");
59+
$scope.isWebPlateform = (context.device.platform == "web");
6860
if (!content.openInApp && content.url) {
6961
if (context.device.platform != "web") {
7062
buildfire.navigation.openWindow(content.url, "_system");

0 commit comments

Comments
 (0)