Hi all I see everyone complaining about unnecessary scrollbars online, but I have the opposite problem in the following case. I know one of you will have the answer right away.
I have a frame in a frameset. It has static content, such as a standard drop down element in it in the form of a <select> tag. Most of the content though is dynamically generated (through dTree.js). When I click to expand my dynamically generated tree, the frame still thinks that the width of the frame is the width of the drop down element (the largest static element on the page). But, my tree generates text which is much wider and wraps off the screen and cannot be seen. Therefore, I need an active scrollbar to appear so that the user can view all the text which should now be used to as the litmus test for whether or not a scrollbar should appear. Any one got it? Once again, I am concerned about IE 7 and IE6 solutions only.
Do you have scrollbars disabled in anyway in the frame or html page itself?
Joined: May 07, 2009
Eric Pascarello wrote:Do you have scrollbars disabled in anyway in the frame or html page itself?
Ok, Eric , I will try to give you as much info as I can.
First of all, let me clarify, frames did work great in IE6 and this behavior started in IE7. So IE7 is the culprit I need the solution for. Here is the frame declaration in question. The vertical scrollbar works 100% as expected. I have to manually drag the frame on the screen to be the width of the <select> element to get a horizontal to appear
TreePane.jsp has a header and this body:
The css for treePaneBody is:
So then in CaseTree.jspf the top level element generated by dTree is a div. If I do the following for the div in my css file:
While the frame horizontal never appears, I get a horizontal scrollbar for my div. So if i scroll all the way to the bottom of the frame with my FRAME vertical scrollbar, I can access the DIV horizontal scrollbar. Not perfect, but the best solution I can achieve.