From 39fb455bea604dc8d44b8ca56ece110f99cff4a5 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 26 Apr 2016 18:57:11 +0000 Subject: [PATCH] Remove printing margin adjustment, looks like print css covers left margin now (checked Chrome, FF, Safari, IE) --- api/js/framework/fw_base.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api/js/framework/fw_base.js b/api/js/framework/fw_base.js index 5db56e1187..baac6f1d51 100644 --- a/api/js/framework/fw_base.js +++ b/api/js/framework/fw_base.js @@ -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();