From 31fa4f5cc2cefcb7a6dcbe2b7e4436210c354449 Mon Sep 17 00:00:00 2001 From: birendra.kumar Date: Mon, 16 Dec 2019 15:44:28 +0530 Subject: [PATCH] Updated CI module and Admin user form --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js index 5818487..ec7bb71 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js @@ -721,9 +721,9 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout theme: 'success', currentController: 'AIController', parentSlug: 'ADAM-images', - content: '
' + + content: '
' + - '' + + '' + '
' + '
', //ajax: { @@ -745,8 +745,24 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $('#aiSpinner').css('visibility', 'hidden'); var canvas = document.getElementById("canvas"); var canvasPaint = document.getElementById("canvasPaint"); - //canvas.height = $(".img-thumbnail").height(); - //canvasPaint.height = $(".img-thumbnail").height(); + + var imageheight = $("#aimage").height(); + var canvasDivheight = $(window).outerHeight() - 150; + + if (canvasDivheight > imageheight) + { + canvas.height = canvasDivheight; + canvasPaint.height = canvasDivheight; + } + else + { + canvas.height = imageheight; + canvasPaint.height = imageheight; + } + + canvas.width = $(window).outerWidth() - 81; + canvasPaint.width = $(window).outerWidth() - 81; + }); $rootScope.currentSlug = 'adam-images-detail'; $rootScope.openViews.push( -- libgit2 0.21.4