more opera feeds frame size work
This commit is contained in:
parent
ce0619bbb0
commit
1de2b92c16
14
tt-rss.js
14
tt-rss.js
|
@ -394,6 +394,15 @@ function init() {
|
|||
}
|
||||
}
|
||||
|
||||
function resize_feeds_frame() {
|
||||
var f = document.getElementById("feeds-frame");
|
||||
var tf = document.getElementById("mainFooter");
|
||||
var th = document.getElementById("mainHeader");
|
||||
|
||||
f.style.height = document.body.scrollHeight - tf.scrollHeight -
|
||||
th.scrollHeight - 50 + "px";
|
||||
}
|
||||
|
||||
function init_second_stage() {
|
||||
|
||||
try {
|
||||
|
@ -411,9 +420,10 @@ function init_second_stage() {
|
|||
|
||||
daemon_enabled = getCookie("ttrss_vf_daemon");
|
||||
|
||||
// FIXME should be callled after window resize
|
||||
|
||||
if (navigator.userAgent.match("Opera")) {
|
||||
var f = document.getElementById("feeds-frame");
|
||||
f.style.height = document.body.scrollHeight - 200 + "px";
|
||||
resize_feeds_frame();
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
|
|
|
@ -68,7 +68,7 @@ window.onload = init;
|
|||
<table width="100%" height="100%" cellspacing="0" cellpadding="0" class="main">
|
||||
<? if (get_pref($link, 'DISPLAY_HEADER')) { ?>
|
||||
<tr>
|
||||
<td colspan="2" class="headerBox">
|
||||
<td colspan="2" class="headerBox" id="mainHeader">
|
||||
<table cellspacing="0" cellpadding="0" width="100%"><tr>
|
||||
<td rowspan="2" class="header" valign="middle">
|
||||
<img src="images/ttrss_logo.png" alt="logo">
|
||||
|
@ -90,7 +90,7 @@ window.onload = init;
|
|||
</tr>
|
||||
<? } else { ?>
|
||||
<tr>
|
||||
<td class="small">
|
||||
<td class="small" id="mainHeader">
|
||||
<div id="notify"><span id="notify_body"> </span></div>
|
||||
<div id="userDlgShadow"><div id="userDlg"> </div></div>
|
||||
</td><td class="welcomePrompt">
|
||||
|
@ -273,7 +273,7 @@ window.onload = init;
|
|||
<? } ?>
|
||||
<? if (get_pref($link, 'DISPLAY_FOOTER')) { ?>
|
||||
<tr>
|
||||
<td colspan="2" class="footer">
|
||||
<td colspan="2" class="footer" id="mainFooter">
|
||||
<a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> © 2005 Andrew Dolgov
|
||||
<? if (WEB_DEMO_MODE) { ?>
|
||||
<br>Running in demo mode, some functionality is disabled.
|
||||
|
|
Loading…
Reference in New Issue