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>' );
}
});
}
});
};
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
Email catchall reply to Odoo V8
แก้ไขแล้ว
|
|
11
เม.ย. 23
|
33895 | |
|
0
มิ.ย. 21
|
3373 | ||
|
0
ก.ย. 16
|
3415 | ||
|
0
ก.พ. 16
|
3820 | ||
How to create "mail.wall" in V8?
แก้ไขแล้ว
|
|
5
พ.ย. 15
|
7820 |