]> git.wh0rd.org Git - tt-rss.git/commitdiff
some more fixes for IE and resize_headlines
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 29 Apr 2007 04:21:47 +0000 (05:21 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 29 Apr 2007 04:21:47 +0000 (05:21 +0100)
tt-rss-ie.css
tt-rss.css
tt-rss.js

index 03412444eeaa0bf621f5ec93620e899d3c90d1cd..ccefc889d0d4cca88ba69f7b3bda28d7a4695d00 100644 (file)
@@ -12,4 +12,14 @@ li.feedCatHolder {
        display : none;
 }
 
+#headlinesInnerContainer {
+       position : normal;
+}
+
+div.headlines_normal {
+       overflow : auto;
+}
 
+div.headlines_cdm {
+       overflow : auto;
+}
index 5709f1d7d28253415a3265b8104dbb0e094d0d9a..291a51bd250286389f608e1cf28ff92cb930e073 100644 (file)
@@ -1289,7 +1289,7 @@ div.headlines_cdm {
 
 #content-frame {
        position : absolute;
-       border-width : 1px 0px 1px 0px;
+       border-width : 1px 0px 0px 0px;
        border-style : solid;
        border-color : #88b0f0;
        overflow : auto;
@@ -1299,7 +1299,7 @@ div.headlines_cdm {
        right : 0px;
        border-collapse : collapse;
        width: expression((parseInt(document.documentElement.clientWidth)-260)+'px');
-       height: expression((parseInt(document.documentElement.clientHeight)-40-305-50)+'px');
+/*     height: expression((parseInt(document.documentElement.clientHeight)-40-305-50)+'px'); */
 }
 
 #footer, #prefFooter {
index 89497e9906ba6b4aab09e1e50eb46090ad92fa89..eec1fe1ae8a658d2a763641822875d76f9fabeb3 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -388,17 +388,32 @@ function init() {
 
 function resize_headlines() {
 
-       if (is_msie()) return;
-
        var h_frame = document.getElementById("headlines-frame");
        var c_frame = document.getElementById("content-frame");
+       var f_frame = document.getElementById("footer");
+
+       if (!c_frame || !h_frame) return;
 
        debug("resize_headlines");
 
-       if (c_frame && h_frame) {
+       if (!is_msie()) {
                h_frame.style.height = 30 + "%";
                c_frame.style.top = h_frame.offsetTop + h_frame.offsetHeight + 1 + "px";
                h_frame.style.height = h_frame.offsetHeight + "px";
+       } else {
+               h_frame.style.height = document.documentElement.clientHeight * 0.3 + "px";
+               c_frame.style.top = h_frame.offsetTop + h_frame.offsetHeight + 1 + "px";
+
+               var c_bottom = document.documentElement.clientHeight;
+
+               if (f_frame) {
+                       c_bottom = f_frame.offsetTop;
+               }
+
+               c_frame.style.height = c_bottom - (h_frame.offsetTop + 
+                       h_frame.offsetHeight + 1) + "px";
+               h_frame.style.height = h_frame.offsetHeight + "px";
+
        }
 }
 
@@ -410,10 +425,8 @@ function init_second_stage() {
 
                delCookie("ttrss_vf_test");
 
-               if (!is_msie()) {
-                       document.onresize = resize_headlines;
-                       resize_headlines();
-               }
+//             document.onresize = resize_headlines;
+               resize_headlines();
 
                var toolbar = document.forms["main_toolbar_form"];