fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7563] property: fix yui table for not in layuot


From: Sigurd Nes
Subject: [Fmsystem-commits] [7563] property: fix yui table for not in layuot
Date: Thu, 08 Sep 2011 06:46:41 +0000

Revision: 7563
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7563
Author:   sigurdne
Date:     2011-09-08 06:46:39 +0000 (Thu, 08 Sep 2011)
Log Message:
-----------
property: fix yui table for not in layuot

Modified Paths:
--------------
    trunk/property/js/yahoo/property.js

Modified: trunk/property/js/yahoo/property.js
===================================================================
--- trunk/property/js/yahoo/property.js 2011-09-08 06:28:58 UTC (rev 7562)
+++ trunk/property/js/yahoo/property.js 2011-09-08 06:46:39 UTC (rev 7563)
@@ -893,7 +893,15 @@
                                                        }
                myPaginator = new YAHOO.widget.Paginator(myPaginatorConfig);
 
-               var tableHeight = 
(YAHOO.layout.getUnitByPosition('center').getSizes().wrap.h)/22 + "em"; 
+               if (typeof YAHOO.layout === 'undefined')
+               {
+                       var tableHeight = "30em";
+               }
+               else
+               {
+                       var tableHeight = 
(YAHOO.layout.getUnitByPosition('center').getSizes().wrap.h)/22 + "em";
+               }
+
 //             
console.log(YAHOO.layout.getUnitByPosition('center').getSizes());
 //             alert(tableHeight);
 




reply via email to

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