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(