If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I noticed that the revised script (post #22) doesn't work well with Chrome for Android, so I made some final(?) changes. If you use the link given in my previous post, please refresh the page to be sure.

No, I have not changed the positioning method due to the width problem only. There were also other problems with my previous script, among which sudden unwanted position changes for certain dropdowns occurring when an anchor link for other dropdowns was clicked on.

In the new script, I use four different functions that don't have arguments for positioning the dropdowns (like 'bottom-right', top_left' etc. ) instead of one single function that does have these arguments, because the latter method turned out to be less safe than the former one while not being less costly (in terms of the number of required javascript lines). Moreover, a coder who is only interested in 'bottom-right', for instance, can safely throw away functions open_element_bottom_left(which, anchor), open_element_top_right(which, anchor) and open_element_top_left(which, anchor) while just retaining open_element_bottom_right(which, anchor).EDIT:
I managed to use one single function with arguments for positioning the dropdowns (like 'bottom-right', top_left' etc. ) that is as safe as the one using different functions for different positions of the dropdowns, see this.

document.getElementById(anchor).offsetHeight is also possible, but document.body.lineHeight produces a nicer effect for pages having a large line-height.

As for white-space: nowrap, it does work for the class .the_anchor. Make the text for the anchors very large and you'll see what I mean. You should not use it for the class .closeable_from_outside because that will make certain lines inside the dropdowns wider than the dropdowns themselves in certain cases.

Arsen that line can't be entered into the original DD-script just like that. What you want would require a whole lot of changes in the script.
What you could do is use the code below, which is an exact emulation of the DD-script:

But remember, this emulation (and the original DD-script for that matter) cannot be used on modern mobile devices. The user would be forced to constantly swipe from left to right and from right to left to see on the screen what he / she wants to see.