Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3999 Weergaven

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
Annuleer
Auteur Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
11
apr. 23
34194
0
jun. 21
3553
0
sep. 16
3502
0
feb. 16
3955
5
nov. 15
7986