Commit 08bb041a87915a8128c5fd0aededeea5a8483e98

Authored by Amrita Vishnoi
2 parents 3a0ef8d5 4cbb62b0

Merge branch 'CI_CA_BottomIssue' into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js
... ... @@ -563,7 +563,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
563 563 left: 1,
564 564 },
565 565  
566   - size: { width: $(window).outerWidth() - 10, height: $(window).outerHeight() },
  566 + size: { width: $(window).outerWidth() - 10, height: $(window).outerHeight() - 110 },
567 567  
568 568 });
569 569  
... ... @@ -576,6 +576,20 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
576 576 "slug": $rootScope.currentSlug
577 577 });
578 578  
  579 +
  580 + var jspContentHeight = $('.jsPanel-content').height();
  581 + var videoHeight = $('#divplayerinlineVideo div').height();
  582 + if (videoHeight <= 0)
  583 + videoHeight = 360;
  584 + var textH = $('.well').height();
  585 + textH = textH + 40;
  586 + var blackBorderHeight = jspContentHeight - (videoHeight + textH);
  587 +
  588 + if ($('.jsPanel-content').length > 0) {
  589 + $('.well').css('margin-bottom', blackBorderHeight);
  590 + $('#divplayerinlineVideo').css('background', '#fff');
  591 + }
  592 +
579 593 }
580 594  
581 595  
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js
... ... @@ -608,7 +608,19 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
608 608 "slug": $rootScope.currentSlug
609 609 });
610 610  
611   -
  611 + var jspContentHeight = $('.jsPanel-content').height();
  612 + var imgHeight = $('.img-thumbnail').find('img').height();
  613 + if (imgHeight <= 0)
  614 + imgHeight = 320;
  615 + var textH = $('.well').height();
  616 + textH = textH + 40;
  617 + var blackBorderHeight = jspContentHeight - (imgHeight + textH);
  618 + if ($('.jsPanel-content').length > 0) {
  619 + $('.jsPanel-btn-min').attr('style', 'display: none');
  620 + $('.jsPanel-btn-max').attr('style', 'display: none');
  621 + $('.jsPanel-btn-norm').attr('style', 'display: none');
  622 + $('.well').css('margin-bottom', blackBorderHeight);
  623 + }
612 624 }
613 625  
614 626  
... ...