aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Horizontal Scrollbars NOT appearing IE 7 (maybe IE 6 too) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Horizontal Scrollbars NOT appearing IE 7 (maybe IE 6 too)" Watch "Horizontal Scrollbars NOT appearing IE 7 (maybe IE 6 too)" New topic
Author

Horizontal Scrollbars NOT appearing IE 7 (maybe IE 6 too)

Greg Werner
Ranch Hand

Joined: May 07, 2009
Posts: 54
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.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Do you have scrollbars disabled in anyway in the frame or html page itself?

Eric
Greg Werner
Ranch Hand

Joined: May 07, 2009
Posts: 54
Eric Pascarello wrote:Do you have scrollbars disabled in anyway in the frame or html page itself?

Eric


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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Horizontal Scrollbars NOT appearing IE 7 (maybe IE 6 too)