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(