You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by hs...@apache.org on 2012/07/06 20:05:21 UTC

svn commit: r1358323 - /shindig/trunk/features/src/main/javascript/features/dynamic-size.util/dynamic-size-util.js

Author: hsaputra
Date: Fri Jul  6 18:05:20 2012
New Revision: 1358323

URL: http://svn.apache.org/viewvc?rev=1358323&view=rev
Log:
Quick fix to check for size attribute exist for IE7.

Modified:
    shindig/trunk/features/src/main/javascript/features/dynamic-size.util/dynamic-size-util.js

Modified: shindig/trunk/features/src/main/javascript/features/dynamic-size.util/dynamic-size-util.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/dynamic-size.util/dynamic-size-util.js?rev=1358323&r1=1358322&r2=1358323&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/dynamic-size.util/dynamic-size-util.js (original)
+++ shindig/trunk/features/src/main/javascript/features/dynamic-size.util/dynamic-size-util.js Fri Jul  6 18:05:20 2012
@@ -17,8 +17,8 @@
  */
 
 /**
- * @fileoverview This library augments gadgets.window with functionality to get the frame's viewport
- *               dimensions.
+ * @fileoverview This library augments gadgets.window with functionality to get
+ *    the frame's viewport dimensions.
  */
 
 gadgets.window = gadgets.window || {};
@@ -87,7 +87,7 @@ gadgets.window = gadgets.window || {};
           if (!size) {
             size = getElementComputedStyle(elem, height ? 'height' : 'width');
           }
-          if (size.length > 0 && size != 'auto') {
+          if (size && size.length > 0 && size != 'auto') {
             // We can safely ignore the children of this element,
             // so move onto the next in the queue
             continue;