You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2006/11/02 11:41:59 UTC
svn commit: r470319 -
/incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree.js
Author: knopp
Date: Thu Nov 2 02:41:59 2006
New Revision: 470319
URL: http://svn.apache.org/viewvc?view=rev&rev=470319
Log:
Fix for rootless mode
Modified:
incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree.js
Modified: incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree.js
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree.js?view=diff&rev=470319&r1=470318&r2=470319
==============================================================================
--- incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree.js (original)
+++ incubator/wicket/trunk/wicket/src/main/java/wicket/markup/html/tree/res/tree.js Thu Nov 2 02:41:59 2006
@@ -75,9 +75,10 @@
// set the new width
var w = (body.getElementsByTagName("div")[0].clientWidth - padding) + "px";
- if (w == "0px") { // this can happen if the first row is hidden (e.g. rootless mode)
+ if (w == (-padding)+"px") { // this can happen if the first row is hidden (e.g. rootless mode)
// try to get the width from second row
w = (body.getElementsByTagName("div")[1].clientWidth - padding) + "px";
+
}
if (w != "0px") {