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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
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>' );
}
});
}
});
};
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
11
d’abr. 23
|
33663 | ||
|
0
de juny 21
|
3202 | ||
|
0
de set. 16
|
3326 | ||
|
0
de febr. 16
|
3675 | ||
|
5
de nov. 15
|
7667 |