Reputation: 425
I am using jquery ui toggle for a dropdown on a map legend.
The problem is that when you click on the class to show the drop down div; there is a slight hiccup where the div jumps a bit. Anyone know why this is happening? Here's my html:
<h3 id="conservation-header">
<i class="icon-stop" style="color:#739435;"></i>
<i class="icon-caret-down" style="color:#fff;"></i>
<span class="dropdown">Conservation</span>
<span class="extras" style="color:#739435;">[
<a style="color:#739435;" id="conservationMoreLink" href="#">info</a>] [
<a style="color:#739435;" >images</a>]</span>
</h3>
<div class="dropThis" style="display:none;">
<ul>
<li>Preservation</li>
<li>Silviculture</li>
<li>Limited Agriculture consistent with resource value</li>
<li>Environmental Services</li>
<li>Mitigation</li>
<li>Recreation</li>
<li>Roadway Connections</li>
</ul>
</div>
thanks in advance
Upvotes: 0
Views: 118
Reputation: 11
I've been able to fix hiccups/jumps in the past by setting the backface- visiblity of the element (or any parent element) to 'hidden';
If you're testing this in Chrome, try adding -webkit-backface-visibility: hidden;
to the body element and see if the problem is fixed.
More info on backface- visibility.
Upvotes: 0