go back to fixed wrapper height because dynamic one breaks layout in chrome :(

This commit is contained in:
Andrew Dolgov 2015-07-07 16:52:43 +03:00
parent 0cf910991e
commit 3cea4a4b75
2 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,7 @@
div.contentSizeWrapper {
overflow : hidden;
text-overflow: ellipsis;
/*height : 700px;*/
height : 800px;
}
button.expandPrompt {

View File

@ -32,9 +32,7 @@ dojo.addOnLoad(function() {
var content = row.select(".cdmContentInner")[0];
if (content) {
var wrapperHeight = Math.round(window.innerHeight * 0.8) + 'px';
content.innerHTML = "<div class='contentSizeWrapper' style='height : "+wrapperHeight+"'>" +
content.innerHTML = "<div class='contentSizeWrapper'>" +
content.innerHTML + "</div><button class='expandPrompt' onclick='return expandSizeWrapper(\""+row.id+"\")' "+
"href='#'>" + __("Click to expand article") + "</button>";