linterna-magica-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linterna-magica-commit] [57] Fix for overlapping web controls in YouTub


From: Ivaylo Valkov
Subject: [linterna-magica-commit] [57] Fix for overlapping web controls in YouTube channel and user pages.
Date: Sun, 08 May 2011 08:30:36 +0000

Revision: 57
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=57
Author:   valkov
Date:     2011-05-08 08:30:34 +0000 (Sun, 08 May 2011)
Log Message:
-----------
Fix for overlapping web controls in YouTube channel and user pages.

Modified Paths:
--------------
    trunk/src/lm_create_video_object.js

Modified: trunk/src/lm_create_video_object.js
===================================================================
--- trunk/src/lm_create_video_object.js 2011-05-02 13:07:44 UTC (rev 56)
+++ trunk/src/lm_create_video_object.js 2011-05-08 08:30:34 UTC (rev 57)
@@ -386,6 +386,15 @@
                                  (this.controls ? 24 : 0))+"px"),
                                "important");
 
+    // In channels/user pages in YouTube the web controlls are
+    // overlapped by this element.
+    if (/youtube\.com/i.test(window.location.hostname) &&
+       document.getElementById("playnav-playview"))
+    {
+       var el =        document.getElementById("playnav-playview");
+       el.style.setProperty("margin-top", "50px", "important");
+    }
+
     // The thumbnail image overlaps the toggle plugin button after our
     // changes. This way our button is visible.
     if (/vimeo\.com/i.test(window.location.hostname) && 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]