diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index f4bd971..3fbd43e 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -627,6 +627,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic $rootScope.lexiconLanguageArray = []; $rootScope.lexiconLanguageArray.push({ id: "1", language: "English" }); $(document).ready(function () { + + $rootScope.isLexiconTabClicked = true; $rootScope.lexiconData = function () { if ($rootScope.isLexiconTabClicked == true) { @@ -4359,7 +4361,17 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic $rootScope.hidePins(); }, 100); } + $timeout(function () { + var $ua = navigator.userAgent; + if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { + var printContainerWidth = $("#printcontainer").css("width"); + $("#printcontainer").css({ "width": "100%", "min-width": printContainerWidth }); + var jspanelContainerWidth = $("#jsPanel-1 .jsPanel-content").css("width"); + $("#jsPanel-1 .jsPanel-content").css({ "width": "100%", "min-width": jspanelContainerWidth }); + $("#jsPanel-1").css("width", "100%"); + } + }, 500) }; function OpenJSPanel() {