Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropdown in a scrolling <DIV>

Status
Not open for further replies.

PoppapumpJ

Programmer
Dec 17, 2001
86
US
Hey,

I have a dropdown box in a DIV

the DIV has it's own scrollbars.

However, when I use the scroll bars, the dropdown does not move correctly. I kind of disappears behind other textboxes.

Is there are way to refresh or reDraw a screen element such as a DIV.

I'm using IE 6.0

thanks
 
I think I figured it out.

the interface I am writeing is for internal use only, By that I am affored the luxury of writing in some IE specific functions.

This problem was being caused by the Gradient.

whenever I was trying to scroll a form, the DropDowns and radio buttons got ugly, and sometimes disappeared.

I took the gradient out and replace it with a single background color. And whall-a.

Here is an example of what the problem looked like

I only tested this in IE 6.0, since that is the corperate standard.

[tt]
<div style=&quot;overflow: auto; height: 200px; border: solid 1px black; FILTER: progid:DXImageTransform.Microsoft.gradient(enabled='true', GradientType=1, startColorstr=cornsilk, endColorstr=#ffffff);&quot;>
test<BR>
test<BR>
<SELECT id=select1 name=select1>
<OPTION>test</OPTION>
<OPTION>test</OPTION>
<OPTION>test</OPTION>
</SELECT><BR>
test<BR>
test<BR>
test<BR>
test<BR>
test<BR>
test<BR>
test<BR>
test<BR>
test<BR>
</div>[/tt]


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top