[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linterna-magica-commit] [217] Temporary fix for bugs #34465 in the 0.0.
From: |
Ivaylo Valkov |
Subject: |
[linterna-magica-commit] [217] Temporary fix for bugs #34465 in the 0.0.10 branch. |
Date: |
Sat, 26 Nov 2011 10:58:37 +0000 |
Revision: 217
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=217
Author: valkov
Date: 2011-11-26 10:58:37 +0000 (Sat, 26 Nov 2011)
Log Message:
-----------
Temporary fix for bugs #34465 in the 0.0.10 branch. Code snippets from r208
Revision Links:
--------------
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=208
Ticket Links:
------------
http://savannah.gnu.org/bugs/?34465
Modified Paths:
--------------
branches/0.0.10/src/lm_interface_hd_links.js
Modified: branches/0.0.10/src/lm_interface_hd_links.js
===================================================================
--- branches/0.0.10/src/lm_interface_hd_links.js 2011-11-26 10:46:48 UTC
(rev 216)
+++ branches/0.0.10/src/lm_interface_hd_links.js 2011-11-26 10:58:37 UTC
(rev 217)
@@ -101,6 +101,28 @@
if (display)
{
hd_list.style.removeProperty("display");
+
+ var top_offset = 0;
+ var el = element;
+
+ // Calculate the offset to the top of the window and
+ // decrease the height of the list if needed. See
+ // https://savannah.nongnu.org/bugs/index.php?34465
+ while(el && !isNaN(el.offsetTop))
+ {
+ top_offset += el.offsetTop;
+ el = el.offsetParent;
+ }
+
+ // Temporary fix for
+ // https://savannah.nongnu.org/bugs/?34465
+ // in 0.0.10 branch!
+ if (hd_list.clientHeight > top_offset)
+ {
+ hd_list.style.setProperty("overflow-y",
+ "scroll", "important");
+ hd_list.style.setProperty("height", "115px", "important");
+ }
}
else
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [linterna-magica-commit] [217] Temporary fix for bugs #34465 in the 0.0.10 branch.,
Ivaylo Valkov <=