mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Remove printing margin adjustment, looks like print css covers left margin now (checked Chrome, FF, Safari, IE)
This commit is contained in:
parent
1ffea39da0
commit
39fb455bea
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user