diff options
author | Andrew Dolgov <[email protected]> | 2015-07-08 10:35:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-07-08 10:35:29 +0300 |
commit | 25c747f5767a0588d2079b036fa89873067f924f (patch) | |
tree | 45ab0124faf0f09c0433c198ed9a66f5db38f678 /plugins/shorten_expanded/init.js | |
parent | 831129f6a4c63530674c8bc73550fc83998971f3 (diff) | |
parent | 3cea4a4b758768770366d132393a026ee2d8a430 (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.js | 4 |
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) { |