Commit 00c09d798f18d96884d2ba146edda65781f6ee80

Authored by Amrita Vishnoi
2 parents 6ed41bbb 283620ca

Merge branch 'ciieissue' of http://52.6.196.163/ADAM/AIAHTML5 into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js
... ... @@ -626,16 +626,18 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
626 626 "slug": $rootScope.currentSlug
627 627 });
628 628  
  629 +
  630 + $("#ciImagePanel .img-thumbnail").css("height", $("#ciImagePanel .jsPanel-content").height());
629 631 var jspContentHeight = $('.jsPanel-content').height();
630   - var imgHeight = $('.img-thumbnail').find('img').height();
631   - if (imgHeight <= 0)
632   - imgHeight = 320;
633   - var textH = $('.img-subtitle').height();
634   - textH = textH + 40;
635   - var blackBorderHeight = jspContentHeight - (imgHeight + textH);
636   - if ($('.jsPanel-content').length > 0) {
637   - $('.img-subtitle').css('margin-bottom', blackBorderHeight);
638   - }
  632 + //var imgHeight = $('.img-thumbnail').find('img').height();
  633 + //if (imgHeight <= 0)
  634 + // imgHeight = 320;
  635 + //var textH = $('.img-subtitle').height();
  636 + //textH = textH + 40;
  637 + //var blackBorderHeight = jspContentHeight - (imgHeight + textH);
  638 + //if ($('.jsPanel-content').length > 0) {
  639 + // $('.img-subtitle').css('margin-bottom', blackBorderHeight);
  640 + //}
639 641 }
640 642  
641 643  
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
... ... @@ -247,9 +247,8 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
247 247 if (document.getElementById('aaDetailPageDiv') != null) {
248 248  
249 249 //0.4 added some stylesheets
250   - $('.aaBodyView').css("height", $(window).outerHeight() - $('.navbar-fixed-top').height());
251   - $('.aaBodyView').css("width", $(window).outerWidth());
252   - $rootScope.canvasDivHeight = $('.aaBodyView').height();
  250 +
  251 + $rootScope.canvasDivHeight = $('.jsPanel-content').height() - $('.main2 .stickey-area').height();
253 252  
254 253 $('.canvasDivClass').css("height", $rootScope.canvasDivHeight);
255 254  
... ...
400-SOURCECODE/AIAHTML5.Web/libs/html2canvas.js
... ... @@ -2858,7 +2858,7 @@ _html2canvas.Renderer.Canvas = function(options) {
2858 2858 if (/*@cc_on!@*/false || !!document.documentMode) {
2859 2859  
2860 2860 var imgData = canvas.getContext("2d").getImageData(bounds.left, bounds.top, bounds.width, bounds.height);
2861   - ctx.putImageData(imgData, 50, 0);
  2861 + ctx.putImageData(imgData, 0, 0);
2862 2862 }
2863 2863 else {
2864 2864  
... ...