From e26f0d14b08ac7fe03bd6422a02f4764d0f10c1c Mon Sep 17 00:00:00 2001 From: shashi.bhushan Date: Mon, 10 Jun 2019 11:11:26 +0530 Subject: [PATCH] fixed bug 38817 --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js index 5619ec7..ffc6b4c 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js @@ -602,10 +602,14 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $rootScope.isLoading = false; $('#aiSpinner').css('visibility', 'hidden'); + //Start Bug#38817 var canvas = document.getElementById("canvas"); var canvasPaint = document.getElementById("canvasPaint"); - canvas.height = $(".img-thumbnail").height(); - canvasPaint.height = $(".img-thumbnail").height(); + canvas.height = $(window).outerHeight()-110; + canvasPaint.height = $(window).outerHeight()-110; + canvas.width = $(window).outerWidth() - 40; + canvasPaint.width = $(window).outerWidth() - 40; + //Start Bug#38817 }); $rootScope.currentSlug = 'adam-images-detail'; $rootScope.openViews.push( -- libgit2 0.21.4