]> git.wh0rd.org Git - tt-rss.git/commitdiff
correctHeadlinesOffset: add opera remark
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 04:06:05 +0000 (05:06 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 04:06:05 +0000 (05:06 +0100)
viewfeed.js

index abf483e213d8845bd9cc7b061e5a553b1ba2839e..4942a25cf747e44dc24dfa1d58178808784ebc24 100644 (file)
@@ -363,10 +363,14 @@ function correctHeadlinesOffset(id) {
        
                debug("Rtop: " + rel_offset_top + " Rbtm: " + rel_offset_bottom);
                debug("Vport: " + viewport);
-       
+
                if (rel_offset_top <= 0 || rel_offset_top > viewport) {
                        container.scrollTop = row.offsetTop;
                } else if (rel_offset_bottom > viewport) {
+
+                       /* doesn't properly work with Opera in some cases because
+                               Opera fucks up element scrolling */
+
                        container.scrollTop = row.offsetTop + row.offsetHeight - viewport;              
                }