mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:19:43 +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
|
// Try to clean up after - not guaranteed
|
||||||
var afterPrint = function() {
|
var afterPrint = function() {
|
||||||
// Reset after removing margin
|
|
||||||
$j('#egw_fw_main').css('margin-left', (framework.activeApp.sideboxWidth -1)+ "px");
|
|
||||||
var app = framework.activeApp;
|
var app = framework.activeApp;
|
||||||
framework.activeApp = '';
|
framework.activeApp = '';
|
||||||
framework.setActiveApp(app);
|
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
|
// Wait for everything to be loaded, then send it off
|
||||||
jQuery.when.apply(jQuery, deferred).done(function() {
|
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);
|
appWindow.setTimeout(appWindow.print, 0);
|
||||||
}).fail(function() {
|
}).fail(function() {
|
||||||
afterPrint();
|
afterPrint();
|
||||||
|
Loading…
Reference in New Issue
Block a user