Ticket #376 (closed defect: fixed)
Fx.Slide does not work if any of the contained elements have margin set
| Reported by: | richard.ward@… | Owned by: | kamicane |
|---|---|---|---|
| Type: | defect | Priority: | minor |
| Milestone: | Component: | Core | |
| Keywords: | Fx.slide margin | Cc: |
Description
I am using the Fx.Slide method and it works a treat provided that you do not have the css property margin set on any of the child elements. For example:
<span id="togglebutton">Click for effect</span>
<div id="divtoslide" style="width:200px;">
<a href="location.html" style="width:100%">Go somewhere 1</a>
<a href="location.html" style="width:100%">Go somewhere 2</a>
<a href="location.html" style="width:100%">Go somewhere 3</a>
</div>
The above would work fine. However, the following will not work:
<span id="togglebutton">Click for effect</span>
<div id="divtoslide" style="width:200px;">
<a href="location.html" style="width:100%;margin:2px">Go somewhere 1</a>
<a href="location.html" style="width:100%;margin:2px">Go somewhere 2</a>
<a href="location.html" style="width:100%;margin:2px">Go somewhere 3</a>
</div>
Please note it does not make any difference if the style is placed in the element itself or in <style> tags or a separate css file, I have just done it inline for the purposes of this ticket.
Any ideas why this is a problem and the likelihood of a solution?
Change History
Note: See
TracTickets for help on using
tickets.