Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4013 Ansichten

Hi,


ATM, when displaying an email that contains a table wider than 590 odd px, the width of the div of the message,

the table is cut off.


What magic css tricks can I do to make the whole table readable?



Avatar
Verwerfen
Autor Beste Antwort

This works for me, there's probably better jquery filters I could use.


openerp.kkproject = function (instance) {

instance.mail.ThreadMessage.include({

start: function () {

this._super.apply(this, arguments);

this.$("div.oe_msg_body_long, div.oe_msg_body_short").children().each(function() {

if ($(this).width() > $("div.oe_msg_center").width() ) {

$(this).wrap('<div style="overflow-x:scroll"></div>' );

}

});

},

on_expand: function (event) {

this._super.apply(this, arguments);

this.$("div.oe_msg_body_long, div.oe_msg_body_short").children().each(function() {

if ($(this).width() > $("div.oe_msg_center").width() ) {

$(this).wrap('<div style="overflow-x:scroll"></div>' );

}

});

}

});

};

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
11
Apr. 23
34233
0
Juni 21
3597
0
Sept. 16
3522
0
Feb. 16
3969
5
Nov. 15
7997