Results 1 to 3 of 3

Thread: Glossy Accordion Menu - icon issue in Safari

  1. #1
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Glossy Accordion Menu - icon issue in Safari

    1) Script Title:

    Glossy Accordion Menu

    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamici...enu-glossy.htm

    3) Describe problem:

    Using Safari, look at the blue example menu near the top.

    Click on the 'CSS Examples' menu link about 10 times.

    You will see the + icon on the 'CSS Drive' menu item below starts to move downwards.

    Icons can also go out of position when using the ddaccordion.expandall() / ddaccordion.collapseall() features.

    Many thanks
    superhans

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    This looks to be more of a CSS bug in Safari rather than bug in the accordion script. As far as the icon portion is concerned, all the script is doing is replacing one <img> tag with another inside the header. The fact that the image is absolutely positioned seems to cause the issue you see.

    I played around a bit, and it seems if you wrap each image icon in a SPAN that's absolutely positioned, the issue goes away:
    Code:
    	animatedefault: false, //Should contents open by default be animated into view?
    	persiststate: true, //persist state of opened contents within browser session?
    	toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
    	togglehtml: ["suffix", "<span class='statusicon'><img src='plus.gif'/></span>", "<span class='statusicon'><img src='minus.gif' /></span>"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
    DD Admin

  3. #3
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Perfect, that solved the issue.

    Thank you so much !

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •