summaryrefslogtreecommitdiff
path: root/plugins/shorten_expanded
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-07-07 16:52:43 +0300
committerAndrew Dolgov <[email protected]>2015-07-07 16:52:43 +0300
commit3cea4a4b758768770366d132393a026ee2d8a430 (patch)
treec467210a1f9889988ebdcb490cd43994c1c014b7 /plugins/shorten_expanded
parent0cf910991ef688a4bca76a056d44f11c828478d1 (diff)
go back to fixed wrapper height because dynamic one breaks layout in chrome :(
Diffstat (limited to 'plugins/shorten_expanded')
-rw-r--r--plugins/shorten_expanded/init.css2
-rw-r--r--plugins/shorten_expanded/init.js4
2 files changed, 2 insertions, 4 deletions
diff --git a/plugins/shorten_expanded/init.css b/plugins/shorten_expanded/init.css
index ed5116872..920e38415 100644
--- a/plugins/shorten_expanded/init.css
+++ b/plugins/shorten_expanded/init.css
@@ -1,7 +1,7 @@
div.contentSizeWrapper {
overflow : hidden;
text-overflow: ellipsis;
- /*height : 700px;*/
+ height : 800px;
}
button.expandPrompt {
diff --git a/plugins/shorten_expanded/init.js b/plugins/shorten_expanded/init.js
index 11ecbc5d5..4d80f8407 100644
--- a/plugins/shorten_expanded/init.js
+++ b/plugins/shorten_expanded/init.js
@@ -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>";