fix calculation of content height with margins
This commit is contained in:
parent
f2104b0a5a
commit
b7e953f50e
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
function setBoxHeights(element) {
|
function setBoxHeights(element) {
|
||||||
var el = element,
|
var el = element,
|
||||||
expandedHeight = el.outerHeight(),
|
expandedHeight = el.outerHeight(true),
|
||||||
cssMaxHeight = parseInt(el.css({maxHeight: ''}).css('max-height').replace(/[^-\d\.]/g, ''), 10),
|
cssMaxHeight = parseInt(el.css({maxHeight: ''}).css('max-height').replace(/[^-\d\.]/g, ''), 10),
|
||||||
defaultHeight = element.data('defaultHeight');
|
defaultHeight = element.data('defaultHeight');
|
||||||
|
|
||||||
|
@ -122,11 +122,14 @@ a.wall-item-name-link {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wall-item-content h1, .wall-item-content h2 {
|
.wall-item-content h1,
|
||||||
|
.wall-item-content h2 {
|
||||||
font-size: 1.319em;
|
font-size: 1.319em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wall-item-title h3, .wall-item-content h3, .wall-item-content h4 {
|
.wall-item-title h3,
|
||||||
|
.wall-item-content h3,
|
||||||
|
.wall-item-content h4 {
|
||||||
font-size: 1.112em;
|
font-size: 1.112em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -615,7 +615,7 @@ function updateConvItems(mode,data) {
|
|||||||
|
|
||||||
|
|
||||||
function collapseHeight() {
|
function collapseHeight() {
|
||||||
$(".wall-item-body, .directory-collapse").each(function() {
|
$(".wall-item-content, .directory-collapse").each(function() {
|
||||||
var orgHeight = $(this).height();
|
var orgHeight = $(this).height();
|
||||||
if(orgHeight > divmore_height + 10) {
|
if(orgHeight > divmore_height + 10) {
|
||||||
if(! $(this).hasClass('divmore')) {
|
if(! $(this).hasClass('divmore')) {
|
||||||
|
Reference in New Issue
Block a user