Commit 5dbbac4358b0274651758d2efdcc8119fc964092

Authored by Mukul Rajput
1 parent 3a0ef8d5

this is for printpreview height issue

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -3341,6 +3341,10 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -3341,6 +3341,10 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3341 document.getElementById('spnBodyViewTitlePor').innerHTML = curPosture; 3341 document.getElementById('spnBodyViewTitlePor').innerHTML = curPosture;
3342 document.getElementById('spnModuleLan').innerHTML = curModule; 3342 document.getElementById('spnModuleLan').innerHTML = curModule;
3343 document.getElementById('spnBodyViewTitleLan').innerHTML = curPosture; 3343 document.getElementById('spnBodyViewTitleLan').innerHTML = curPosture;
  3344 + if ($('#dvPPImg').length > 0) {
  3345 + $("#dvPPImg").css('width', $(window).outerWidth());
  3346 + $("#dvPPImg").css('height', $(window).outerHeight());
  3347 + }
3344 }, 320); 3348 }, 320);
3345 } 3349 }
3346 3350
@@ -3369,7 +3373,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -3369,7 +3373,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3369 top: 70, 3373 top: 70,
3370 left: 1, 3374 left: 1,
3371 }, 3375 },
3372 - size: { width: $(window).outerWidth() - 10, height: $(window).outerHeight() - 110 }, 3376 + size: { width: $(window).outerWidth(), height: $(window).outerHeight() + 60},
3373 }); 3377 });
3374 } 3378 }
3375 3379
400-SOURCECODE/AIAHTML5.Web/app/views/Home/printPreview.html
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 </div> 30 </div>
31 <div class="clearfix"></div> 31 <div class="clearfix"></div>
32 </div> 32 </div>
33 - <div class="pp-col-sm-12 well" align="center" style="overflow-y: auto; width: 100%; height: 490px;"> 33 + <div class="pp-col-sm-12 well" align="center" id="dvPPImg" style="overflow-y: auto;">
34 <div class="print-paper" id="dvPP"> 34 <div class="print-paper" id="dvPP">
35 <div class="print-box portrait-box" id="printBoxPor"> 35 <div class="print-box portrait-box" id="printBoxPor">
36 <div id="printDivContent"> 36 <div id="printDivContent">