1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 10:26:17 +00:00

[discuss to group] fixed '.msg-main top border missing sometimes' in chrome

This commit is contained in:
llj
2013-04-18 14:46:41 +08:00
parent 33fe53076b
commit b45ab7cb53
2 changed files with 2 additions and 1 deletions

View File

@@ -1550,6 +1550,7 @@ textarea:-moz-placeholder {/* for FF */
}
.msg {
word-wrap: break-word;
padding:1px 0; /* to fix 'top border missing' when only 1 discussion & no scrollbar in chrome */
margin:15px 0 20px;
}
.msg .txt {

View File

@@ -7,7 +7,7 @@ $('#footer').addClass('hide');
{% if groups %}
function getAndHandleDiscussions(data_html) {
$('#discussions-to-grp').html(data_html).css({'max-height':$(window).height() * 0.9 - $('#bottom-bar').height() - $('#discuss-to-group-caret').height() - $('#discuss-to-group-form').outerHeight()}).removeClass('hide');
$('#discussions-to-grp').html(data_html).css({'max-height': parseInt($(window).height() * 0.9 - $('#bottom-bar').height() - $('#discuss-to-group-caret').height() - $('#discuss-to-group-form').outerHeight())}).removeClass('hide'); // 'parseInt' to fix '.msg-main top border missing when the ul's max-height is xxx.5px'
{% include 'group/msg_js.html' %}
}
$('#discuss').click(function() {