Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-22-2010, 03:07 AM   PM User | #1
javascriptless
New to the CF scene

 
Join Date: Oct 2010
Location: New Zealand
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
javascriptless is an unknown quantity at this point
DW Spry Collapsible Panel customisation problem

I'm using Adobe Dreamweaver CS5 to revamp a site.

I am using Dreamweaver's built-in Spry Collapsible Panel widget to shorten the length of a bio page by having additional paragraphs about board members extend out when 'more' is clicked, and close when it is clicked again.

Here's the resulting html when you insert an instance of a Collapsible Panel into your code in DW; the div with the class of CollapsiblePanelTab is the clickable 'more' area, and the div of class CollapsiblePanelContent is the panel area that expands:

Code:
<div id="CollapsiblePanel1" class="CollapsiblePanel">
  <div class="CollapsiblePanelTab" tabindex="0">Tab (more)</div>
  <div class="CollapsiblePanelContent">Content</div>
</div>
Our graphic designer is insisting on the 'more' tab to slide down to rest at the bottom of the panel once fully expanded.

However, the default behaviour is for more to remain stationary at top with the panel expanding beneath it.

To achieve this I absolutely positioned the CollapsiblePanelTab div, giving it a left:0; bottom:0 position (this also meant I had to make the containing div of CollapsiblePanel relatively positioned).

This works great in every browser expect the current IE release, IE8. In IE8, after closing the panel, the more tab (CollapsiblePanelTab div) momentarily moves approx 16px up and flicks back down again.

I can't work out why (obviously), but think it might have to do with the focus/blur event detection of the javascript (beyond me at this stage of my JS learning).

You can view the bug at work here:http://www.wakerleybrothers.co.nz/problem/ (view it in IE8).

The javascript file is here: http://www.wakerleybrothers.co.nz/pr...psiblePanel.js (unaltered from DW's default)

The CSS file is here: http://www.wakerleybrothers.co.nz/pr...siblePanel.css (with just the few positioning changes to DW's default as described above)

Any thoughts/suggestions much appreciated - Thanks!

Last edited by javascriptless; 10-22-2010 at 03:30 AM..
javascriptless is offline   Reply With Quote
Old 01-13-2012, 08:31 PM   PM User | #2
JPP
New Coder

 
Join Date: Jan 2012
Posts: 22
Thanks: 4
Thanked 0 Times in 0 Posts
JPP is an unknown quantity at this point
this.content.style.display = "none";

Change to....

this.content.style.display = "auto";


This will be found in the SpryCollapsiblePanel.js code.
JPP is offline   Reply With Quote
Reply

Bookmarks

Tags
collapsible, dreamweaver, panel, spry, tab

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:11 PM.


Advertisement
Log in to turn off these ads.