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

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

[linterna-magica-commit] [376] Removing "height: auto" for parent nodes.


From: Ivaylo Valkov
Subject: [linterna-magica-commit] [376] Removing "height: auto" for parent nodes.
Date: Mon, 31 Dec 2012 10:25:52 +0000

Revision: 376
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=376
Author:   valkov
Date:     2012-12-31 10:25:51 +0000 (Mon, 31 Dec 2012)
Log Message:
-----------
Removing "height: auto" for parent nodes. The whole interface fits in
the space allocated by the website.

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

Modified: trunk/src/lm_create_video_object.js
===================================================================
--- trunk/src/lm_create_video_object.js 2012-12-31 09:20:32 UTC (rev 375)
+++ trunk/src/lm_create_video_object.js 2012-12-31 10:25:51 UTC (rev 376)
@@ -330,13 +330,6 @@
        this.hide_lm_interface(object_data.linterna_magica_id);
     }
 
-    if (object_data.parent)
-    {
-       object_data.parent.style.setProperty("height",
-                                            "auto",
-                                            "important");
-    }
-   
     // Objects extracted from script usually does not have cloned object
     // For example youtube
     if (site_player)
@@ -383,35 +376,6 @@
        }
     }
 
-    // Fixes script crash in vimeo.com with firefox. if
-    // parent.parentNode is not an object
-    if (object_data.parent && object_data.parent.parentNode)
-    {
-       // dailymotion.com && metacafe.com && btn.bg
-       // These have single div inside another one
-       // which (through height) overlaps elemenst
-       // It is not good to be applied on parent.parentNode
-       // which has different number of childNodes
-       if ((object_data.parent.parentNode.childNodes.length === 3 &&
-            // text node
-            object_data.parent.parentNode.firstChild.nodeType === 3 &&
-            object_data.parent.parentNode.lastChild.nodeType === 3) ||
-           object_data.parent.parentNode.localName.toLowerCase() === "li")
-
-       {
-           object_data.parent.parentNode.style.
-               setProperty("height",
-                           "auto",
-                           "important");
-
-           this.log("LinternaMagica.create_video_object:\n"+
-                    "Detected single wrapper "+
-                    "element inside another one. Aplying parent.parent "+
-                    "height: "+(parseInt(object_data.height)+26)+"px", 4);
-       }
-    }
-
-
     // Init the web controls functions
     // only if Linterna Mágica has priority
     if (this.controls &&




reply via email to

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