You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/05/19 18:40:34 UTC

svn commit: r946266 - /myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js

Author: lofwyr
Date: Wed May 19 16:40:34 2010
New Revision: 946266

URL: http://svn.apache.org/viewvc?rev=946266&view=rev
Log:
TOBAGO-882: resizable for tc:column
 - using childNodes instead of children in DOM

Modified:
    myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js?rev=946266&r1=946265&r2=946266&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js Wed May 19 16:40:34 2010
@@ -339,7 +339,8 @@ Tobago.Sheet.prototype.setupResizer = fu
       Tobago.addBindEventListener(headerDiv, "mousemove", this, "doResize");
       Tobago.addBindEventListener(headerDiv, "mouseup", this, "endResize");
 
-      for (var i = 0; i < headerDiv.children.length; i++) {
+      var length = headerDiv.childNodes.length;
+      for (var i = 0; i < length; i++) {
         var resizer = Tobago.element(this.id + "_header_resizer_" + i);
         if (resizer && resizer.className.match(/tobago-sheet-header-resize-cursor/)) {
           Tobago.addEventListener(resizer, "click", Tobago.stopEventPropagation);