From 26d489ccc0d0a439c7d2a7350f77a2c47d139af7 Mon Sep 17 00:00:00 2001 From: Birendra Date: Fri, 18 Dec 2020 13:59:19 +0530 Subject: [PATCH] fix top menu issue on ipad --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js | 25 ++++++++++++++++++------- 400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/CBuild-view.html | 2 +- 400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/curriculum-builder-detail.html | 2 +- 400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html | 2 +- 400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html | 10 +++++----- 400-SOURCECODE/AIAHTML5.Web/index.aspx | 8 ++++---- 400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/bootstrap.css | 21 +++++++++++++++++---- 400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css | 25 ++++++++++++++++++++++++- 8 files changed, 71 insertions(+), 24 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js index e62a520..a7d404f 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js @@ -33,12 +33,12 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ var $ua = navigator.userAgent; if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { $("#treecontent").css('height',screen.height-140); - $("#cbdivarea").css('height',screen.height-60); + $("#cbdivarea").css('height',screen.height-70); } else { $("#treecontent").css('height',screen.height-250); - $("#cbdivarea").css('height',screen.height-170); + $("#cbdivarea").css('height',screen.height-180); } $('#sidebar-wrapper').unbind('click'); @@ -259,6 +259,11 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ $rootScope.FileTitle=fileTitle; $scope.fileName = fileName; + var $ua = navigator.userAgent; + if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { + if(screen.width<=768) + $('#modal-CurBuilder').css("left", "10%"); + } $('#modal-CurBuilder').css("display", "block"); $("#CurBuilderbackground").css("display", "block"); @@ -389,6 +394,11 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ $rootScope.FileTitle = $rootScope.cbTreeFirstLabel; $timeout(function () { + var $ua = navigator.userAgent; + if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { + if(screen.width<=768) + $('#modal-CurBuilder').css("left", "10%"); + } $('#modal-CurBuilder').css("display", "block"); $("#CurBuilderbackground").css("display", "block"); }, 200); @@ -515,9 +525,9 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ window.navigator.msSaveOrOpenBlob(blob, myfileName); } else - { + { document.execCommand("SaveAs", true, myfileName); - + var event = document.createEvent('MouseEvents'), saveElement = document.createElement('a'); saveElement.download = myfileName; @@ -1773,9 +1783,10 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ if (window.navigator && window.navigator.msSaveOrOpenBlob) { window.navigator.msSaveOrOpenBlob(blob, filename); } - else { + else + { document.execCommand("SaveAs", true, filename); - + var event = document.createEvent('MouseEvents'), saveElement = document.createElement('a'); saveElement.download = filename; @@ -1783,7 +1794,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ saveElement.dataset.downloadurl = ['text/json', saveElement.download, saveElement.href].join(':'); event.initEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); saveElement.dispatchEvent(event); - + } $scope.SectionContentForExportCB=[]; $rootScope.dynamicUpdatedJsonForExportCB = ""; diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/CBuild-view.html b/400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/CBuild-view.html index 71c7e91..f00d63f 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/CBuild-view.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/CBuild/CBuild-view.html @@ -16,7 +16,7 @@ -