Commit e26f0d14b08ac7fe03bd6422a02f4764d0f10c1c

Authored by Shashi Bhushan Kumar
1 parent ff92ae7c

fixed bug 38817

400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js
@@ -602,10 +602,14 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout @@ -602,10 +602,14 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
602 602
603 $rootScope.isLoading = false; 603 $rootScope.isLoading = false;
604 $('#aiSpinner').css('visibility', 'hidden'); 604 $('#aiSpinner').css('visibility', 'hidden');
  605 + //Start Bug#38817
605 var canvas = document.getElementById("canvas"); 606 var canvas = document.getElementById("canvas");
606 var canvasPaint = document.getElementById("canvasPaint"); 607 var canvasPaint = document.getElementById("canvasPaint");
607 - canvas.height = $(".img-thumbnail").height();  
608 - canvasPaint.height = $(".img-thumbnail").height(); 608 + canvas.height = $(window).outerHeight()-110;
  609 + canvasPaint.height = $(window).outerHeight()-110;
  610 + canvas.width = $(window).outerWidth() - 40;
  611 + canvasPaint.width = $(window).outerWidth() - 40;
  612 + //Start Bug#38817
609 }); 613 });
610 $rootScope.currentSlug = 'adam-images-detail'; 614 $rootScope.currentSlug = 'adam-images-detail';
611 $rootScope.openViews.push( 615 $rootScope.openViews.push(