From 935f235da7481a6d5d06168f484bd9f2aa0f6ccd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Sep 2006 05:45:26 +0100 Subject: [PATCH] msie compatibility fixes --- feedlist.js | 4 ++++ tt-rss.css | 17 ++++++++++++++--- tt-rss.php | 5 +++++ viewfeed.js | 6 ++++++ 4 files changed, 29 insertions(+), 3 deletions(-) diff --git a/feedlist.js b/feedlist.js index 17ca3f9e..c097a3eb 100644 --- a/feedlist.js +++ b/feedlist.js @@ -167,6 +167,10 @@ function feedlist_init() { debug("removed splash!"); } + if (typeof correctPNG != 'undefined') { + correctPNG(); + } + } catch (e) { exception_error("feedlist/init", e); } diff --git a/tt-rss.css b/tt-rss.css index d01699aa..be6d8e13 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -141,14 +141,14 @@ ul.feedList { list-style-type : none; margin : 5px; padding : 0px 0px 0px 10px; - font-size : x-small; + font-size : small; } ul.feedList li.feedCat { margin : 0px; padding : 3px 0px 3px 0px; color : #707070; - font-size : x-small; + font-size : small; } ul.feedList li.feedCat a { @@ -1260,6 +1260,7 @@ div.whiteBox { overflow : auto; bottom : 40px; border-collapse : collapse; + height: expression((parseInt(document.documentElement.clientHeight)-40-20-30)+'px'); } #toolbar { @@ -1273,7 +1274,6 @@ div.whiteBox { background-image : url("images/toolbar.png"); background-position : bottom left; background-repeat : repeat-x; - font-size : small; } div.headlines_normal { @@ -1288,6 +1288,8 @@ div.headlines_normal { overflow : hidden; font-size : small; border-collapse : collapse; + /* css hack for IE */ + width: expression((parseInt(document.documentElement.clientWidth)-260)+'px'); } div.headlines_cdm { @@ -1302,6 +1304,7 @@ div.headlines_cdm { overflow : auto; font-size : small; border-collapse : collapse; + width: expression((parseInt(document.documentElement.clientWidth)-260)+'px'); } #content-frame { @@ -1315,6 +1318,8 @@ div.headlines_cdm { bottom : 40px; right : 0px; border-collapse : collapse; + width: expression((parseInt(document.documentElement.clientWidth)-260)+'px'); + height: expression((parseInt(document.documentElement.clientHeight)-40-305-50)+'px'); } #footer { @@ -1331,6 +1336,12 @@ div.headlines_cdm { right : 0px; left : 0px; padding : 10px; + width: expression((parseInt(document.documentElement.clientWidth)-20)+'px'); + border-collapse : collapse; + border-width : 1px 0px 0px 0px; + border-style : solid; + border-color : #88b0f0; + } #headlinesContainer { diff --git a/tt-rss.php b/tt-rss.php index 23cb712a..8aae9503 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -48,6 +48,11 @@ + + diff --git a/viewfeed.js b/viewfeed.js index 9951636c..08b66a3c 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -6,6 +6,9 @@ function headlines_callback() { var f = document.getElementById("headlines-frame"); f.innerHTML = xmlhttp.responseText; update_all_counters(); + if (typeof correctPNG != 'undefined') { + correctPNG(); + } notify(""); } } @@ -15,6 +18,9 @@ function article_callback() { debug("article_callback"); var f = document.getElementById("content-frame"); f.innerHTML = xmlhttp.responseText; + if (typeof correctPNG != 'undefined') { + correctPNG(); + } update_all_counters(); } } -- 2.39.5