跳至內容
選單
此問題已被標幟
1 回覆
3851 瀏覽次數

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>' );

}

});

}

});

};

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
11
4月 23
33882
0
6月 21
3364
0
9月 16
3409
0
2月 16
3811
5
11月 15
7801