diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm
index f749b052c..696ebf5a5 100755
--- a/fhem/FHEM/01_FHEMWEB.pm
+++ b/fhem/FHEM/01_FHEMWEB.pm
@@ -180,6 +180,7 @@ FHEMWEB_Initialize($)
stylesheetPrefix
title
touchpad:unused
+ viewport
webname
);
use warnings 'qw';
@@ -808,13 +809,15 @@ FW_answerCall($)
if($FW_tp || $FW_ss) {
my $icon = FW_iconPath("fhemicon_ios.png");
$icon = $FW_ME."/images/".($icon ? $icon : "default/fhemicon_ios.png");
+ my $viewport = '';
if($FW_ss) {
my $stf = $FW_userAgent =~ m/iPad|iPhone|iPod/ ? ",shrink-to-fit=no" :"";
- FW_pO "";
+ $viewport = "initial-scale=1.0,user-scalable=1$stf";
} elsif($FW_tp) {
- FW_pO '';
+ $viewport = "width=768";
}
+ $viewport = AttrVal($FW_wname, "viewport", $viewport);
+ FW_pO '' if ($viewport);
FW_pO '';
FW_pO ''; # Forum #36183
FW_pO '';
@@ -3569,6 +3572,14 @@ FW_widgetOverride($$)
Sets the title of the page. If enclosed in {} the content is evaluated.
+
+