summaryrefslogtreecommitdiff
path: root/plugins/shorten_expanded/init.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-07-08 10:35:29 +0300
committerAndrew Dolgov <[email protected]>2015-07-08 10:35:29 +0300
commit25c747f5767a0588d2079b036fa89873067f924f (patch)
tree45ab0124faf0f09c0433c198ed9a66f5db38f678 /plugins/shorten_expanded/init.js
parent831129f6a4c63530674c8bc73550fc83998971f3 (diff)
parent3cea4a4b758768770366d132393a026ee2d8a430 (diff)
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'plugins/shorten_expanded/init.js')
-rw-r--r--plugins/shorten_expanded/init.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/shorten_expanded/init.js b/plugins/shorten_expanded/init.js
index ba82b643b..4d80f8407 100644
--- a/plugins/shorten_expanded/init.js
+++ b/plugins/shorten_expanded/init.js
@@ -1,4 +1,4 @@
-var _shorten_expanded_threshold = 900; //px, longer than css height so that we would only clip articles significantly longer than limit
+var _shorten_expanded_threshold = 1.5; //window heights
function expandSizeWrapper(id) {
try {
@@ -28,7 +28,7 @@ dojo.addOnLoad(function() {
window.setTimeout(function() {
if (row) {
- if (row.offsetHeight >= _shorten_expanded_threshold) {
+ if (row.offsetHeight >= _shorten_expanded_threshold * window.innerHeight) {
var content = row.select(".cdmContentInner")[0];
if (content) {