setting overflow: auto after constructor call, as new dhtmlXTree has hidden hardcoded

This commit is contained in:
Ralf Becker 2010-10-18 12:19:38 +00:00
parent af7a24eb9a
commit 1e1df2fe2c

View File

@ -1225,6 +1225,7 @@ class html
$html = self::div("\n",'id="'.$tree.'"',$_divClass).$html;
$html .= "<script type='text/javascript'>\n";
$html .= "var $tree = new dhtmlXTreeObject('$tree','100%','100%',0);\n";
$html .= "$tree.parentObject.style.overflow='auto';\n"; // dhtmlXTree constructor has hidden hardcoded
if (translation::charset() == 'utf-8') $html .= "if ($tree.setEscapingMode) $tree.setEscapingMode('utf8');\n";
$html .= "$tree.setImagePath('$folderImageDir/dhtmlxtree/');\n";