AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Mon Aug 25, 2003 7:08 pm Post subject: |
|
|
Adjust your initialization code:
| Code: | var tree1 = new COOLjsTreePRO("tree1", TREE1_NODES, TREE1_FORMAT);
tree1.ondraw = function () {
function max(a, b) { return a > b ? a : b; }
if (!this.fmt.rel) {
// if (!this.$NN4xWidth)
this.$NN4xWidth = document.width, this.$NN4xHeight= document.height;
document.width = max(this.$NN4xWidth, this.maxWidth + this.fmt.left);
document.height = max(this.$NN4xHeight, this.maxHeight + this.fmt.top);
}
} |
Try it with and without comment near "if (!this..." - this will turn on or off automatic scrollbar hiding (works for me for the first time and then does not work - some NN bug, probably). |
|