]> git.wh0rd.org Git - tt-rss.git/commitdiff
go back to fixed wrapper height because dynamic one breaks layout in chrome :(
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Tue, 7 Jul 2015 13:52:43 +0000 (16:52 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Tue, 7 Jul 2015 13:52:43 +0000 (16:52 +0300)
plugins/shorten_expanded/init.css
plugins/shorten_expanded/init.js

index ed511687241c389ec772112bf496a99e6246a29f..920e38415856e598ab138e76c1f4a9906453e128 100644 (file)
@@ -1,7 +1,7 @@
 div.contentSizeWrapper {
        overflow : hidden;
        text-overflow: ellipsis;
-       /*height : 700px;*/
+       height : 800px;
 }
 
 button.expandPrompt {
index 11ecbc5d5dea17b8af8326ff9d15d9cee581700b..4d80f840725ff06b0c9adf6886e4ff4daa15a01c 100644 (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>";