JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Netscape browser no scroll with large tree menu

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
threfy789
Guest





PostPosted: Thu Aug 21, 2003 3:13 pm    Post subject: Netscape browser no scroll with large tree menu Reply with quote

Confused

I have a tree menu with many nodes (position: absolute), but when i expand the nodes passed the bottom of the page, i can't scroll with the netscape browser (N4) because the scroll is not active on the window.

I'm using the pro version. Anyone seen this problem before?
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Mon Aug 25, 2003 7:08 pm    Post subject: Reply with quote

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).
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1