Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3867 มุมมอง

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