tags:

views:

90

answers:

2
A: 

That sounds like a problem with the positioning (duh :)). How do the code look like? Where are the buttons placed within the page? I think for it to be correct, the buttons should have position: absolute or position:relative, and their parent, which should be the div with the folders or some other div within that one (the one that is scrolling), also need to have position:relative so that the buttons know which div to follow.

Seeing that the background of the buttons follow the scrolling, first thing to try would be to set that one to position:relative.

I hope I made myself somewhat clear, in a bit of a hurry, but hopefully it will give you some idea of what to look for.

Jimmy Stenke
Thanks Jimmy, I will let you know how it goes
krul
+1  A: 

It seems by the look of that scrollbar that you mean IE6.

If so, there is a bug in IE6 that causes anything with position:absolute; on an html page with height:100% to act as position:fixed instead.

Here is a writeup on it: http://www.cssplay.co.uk/layouts/fixed.html

Alex Sexton
it definitely has something to do with container height, I removed 100% height on divItems container and buttons stay in menu tool bar.But I've lost scroll :-(, I mean tree will expand vertically indefinitely
krul
Can you use a fixed pixel height instead of a 100%? With jquery you could just set the height to `$(window).height()` and it would have the same effect.
Alex Sexton
Thanks Alex, I know for that but I don't want to maintain dynamic height. I have solved the problem (As far as my testing shows) by enclosing tree control into separate div (treeContainer). That helped. Thanks a lot
krul