Strange IE6 CSS Absolute positioning bug

K

kenoyer130

Using .Net I have created a user control that is an embedded dropdown
list that filters based on data. Since with .Net this is all translated
to client side code, the fact I am using .Net should not matter.

There is javascript functions that set the dropdown to hidden or
displayed if the user clicks in the text box above the Select
(dropdown) tag. Everything works fine until the user scrolls the IE
Window. Then when they click in the text box, the location of the
dropdown appears somewhat randomly above or below the textbox instead
of where it should be, as it did before the scroll.

Here is the HTML tag

<select name="parcelView:_ctl0:Zip:lstValues" size="4"
id="parcelView__ctl0_Zip_lstValues" onkeydown="valueChange(event);"
onChange="setValue(event);"
style="Margin-left:-165px;margin-top:21px;Display:none;z-order:5;position:absolute;">

I tried removing the negative margin left since those can be
problematic, but still had the same issue.

Any ideas? Do I need to reset the select location with the onscroll
event somehow?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top