1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 07:45:56 +00:00

add 3pane theme

This commit is contained in:
Andrew Dolgov
2007-10-30 09:22:01 +01:00
parent de0800a971
commit 203610630a
9 changed files with 94 additions and 36 deletions

View File

@@ -357,27 +357,37 @@ function resize_headlines() {
if (!c_frame || !h_frame) return;
debug("resize_headlines");
if (getInitParam("theme") == "3pane") {
debug("resize_headlines: HOR-mode");
c_frame.style.width = '30%';
h_frame.style.right = c_frame.offsetWidth - 1 + "px";
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";
debug("resize_headlines: VER-mode");
var c_bottom = document.documentElement.clientHeight;
if (f_frame) {
c_bottom = f_frame.offsetTop;
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";
}
c_frame.style.height = c_bottom - (h_frame.offsetTop +
h_frame.offsetHeight + 1) + "px";
h_frame.style.height = h_frame.offsetHeight + "px";
}
}
function init_second_stage() {