Remove printing margin adjustment, looks like print css covers left margin now (checked Chrome, FF, Safari, IE)

This commit is contained in:
Nathan Gray 2016-04-26 18:57:11 +00:00
parent 1ffea39da0
commit 39fb455bea

View File

@ -995,8 +995,6 @@ var fw_base = (function(){ "use strict"; return Class.extend(
{
// Try to clean up after - not guaranteed
var afterPrint = function() {
// Reset after removing margin
$j('#egw_fw_main').css('margin-left', (framework.activeApp.sideboxWidth -1)+ "px");
var app = framework.activeApp;
framework.activeApp = '';
framework.setActiveApp(app);
@ -1027,8 +1025,6 @@ var fw_base = (function(){ "use strict"; return Class.extend(
// Wait for everything to be loaded, then send it off
jQuery.when.apply(jQuery, deferred).done(function() {
// Despite being set in the print CSS, this just doesn't work
$j('#egw_fw_main').css('margin-left','0px');
appWindow.setTimeout(appWindow.print, 0);
}).fail(function() {
afterPrint();