Skip navigation
krizcortes
Currently Being Moderated

Spry SlidingPanels AUTO HEIGHT TWEAK

Mar 7, 2012 9:05 AM

Tags: #help #auto #script #content #class #javascript #display #edit #slide #widget #panel #height #fix #sliding_panels #sprywidget.js #assume

Hi guys,

 

Ive been trying for a while to make the sliding panels widget

show each panel in its own height instead of the longest panel's height in the container.

I tried reading all the js file to play with it and find a solution but the truth is i dont know how to do what i want.

 

I do, however, have a list of things that i believe if implemented should work,

could you guys help me do these fixes on the js? ( the one you think will work )

 

1. edit so that:  Panels dont have any height ( or panel content display none ) if it isnt current panel. If current panel is "id:1" the assume class 1 style properties. As soon as it looses focus/"currentpanel" class it looses its class 1 properties. And the new current panel ("id:2") assumes its own class 2 properties. And so on.

 

2. edit so that:  PanelContainer ( the one that holds all the panels ) displays none BUT the current panel. So all panels could be display none unless they assume the "currentpanel" class and so they change to display. Maybe this way the container assumes only the height of the displayed panel and looses it once its no longer displayed assuming the next displayed one.

 

3. edit so that:  Panel container checks for current panel's height and assumes that height instantly ( there is still a panel inside the container that would be longer than the current panel, maybe with overflow hidden this isnt a problem )

 

Please, if you can make the change in the js, i would appreciate greatly appreciate it. There is nothing in the entire web in to fixing this.

 


 
Replies
  • Currently Being Moderated
    Mar 7, 2012 9:23 AM   in reply to krizcortes

    Why did you post this in the forum for Acrobat Javascript?

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 11:33 AM   in reply to krizcortes

    What kind of Javascript do you use? There are Acrobat Javascript, Illustrator Javascript, and so on.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 2:23 PM   in reply to krizcortes

    I can't help.

     
    |
    Mark as:
  • George Johnson
    11,671 posts
    Aug 11, 2002
    Currently Being Moderated
    Mar 7, 2012 8:08 PM   in reply to krizcortes

    You should post this in the Dreamweaver forum, not the Acrobat JavaScript forum.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 5:59 AM   in reply to krizcortes

    Because this has nothing to do with JavaScript code used in Acrobat ...

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 6:56 AM   in reply to krizcortes

    so the javascript code used in acrobat

    is so different to the javascript code used for web

    Yes. When you run the code in Acrobat you will get a long list of errors.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 8, 2012 6:59 AM   in reply to krizcortes

    There are about a million forums on the web dedicated to web-based JS, and

    about 2 or 3 dedicated to Acrobat-based JS. So why not look for a place

    where you're more likely to get help?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (1)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points