Dynamic Accordion height (revisited)

Hi All,
I have an application that allows the user to add or remove
Accordion panels at will. My problem is that I want to keep the
overall Accordion height constant independent of the number of
panels.
I have found a simple way to keep the overall height of an
Accordion constant by varying the AccordionPanelContent height as
follows:
<div class="AccordionPanelContent" style="height:
expression(500-(20*{ds_RowCount})+'px'); margin: 0px;">
The problem is that it only works in IE5+.
Is there a way to achieve the same result for other browsers?

quote:
Originally posted by:
Barascu Diana
Hi,
you can use expression () only for IE and if you want to get
the same behavior for the other browsers, you should write some
java script code to compute the height and then to set it on the
element.
Something like this:
var el = document.getElementById('id_{ds_RowID}');
if (el){
el.style.height = 500 - (20 *
(isNaN(parseInt('{ds_RowCount}'))? 0 : parseInt('{ds_RowCount}')))
+ 'px';
Diana
Hello Diana,
Thank you very much for your quick response. I used your
script and it and it works like a charm.
Kind regards,
Ben

Similar Messages

  • Dynamic accordion with dynamic datagrid

    I’m trying to create a dynamic accordion with embedded
    datagrids in each accordion area. I have the base working but have
    2 problems I can’t seem to figure out.
    Bases; the accordion uses a repeater and vbox with a custom
    component from a webservice result set to create the accordion. The
    custom component has another webservice that gets a value from the
    repeater to pass it to the custom component.
    My 2 problems:
    1. how do I prevent the custom component from running the
    webservice until the accordion item is clicked or the area is
    visible? Otherwise I end up will a bunch of queries hitting the DB
    and if there is several items for the accordion and many items from
    the datagrid its slower.
    2. how can I get the datagrid query to refresh when the
    accordion item is clicked? Because the data may change I am not
    able to see the updated data unless I reload the entire
    application.
    1 thing I did try. With the tab control you can use the
    show() event and the data will refresh just fine, but with the
    accordion, the show() event does not seem to fire. Its as if they
    are all visible.
    Any help here would be much appreciated, I’ve been
    racking my brain for days now and I sure it is something simple
    that I am missing. Thanks in advance.
    See the example code below.
    the application code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    width="100%"
    height="100%"
    initialize="ws.getMethod1.send()"
    xmlns:output="com.comp.*">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    [Bindable]
    public var thisWsdl:String = '
    http://localhost/webservice/service.cfc?wsdl';
    ]]>
    </mx:Script>
    <mx:WebService id="ws"
    wsdl="{thisWsdl}"
    useProxy="false"
    showBusyCursor="true"
    fault="Alert.show(event.fault.faultString, 'Error');"
    concurrency="multiple" requestTimeout="30">
    <mx:operation name="getMethod1">
    <mx:request>
    <param1>{param1data}</param1>
    <param2>{param2data}</param2>
    <param3>{param3data}</param3>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:Accordion width="100%" height="100%"
    fillColors="[#808080, #808080]">
    <mx:Repeater id="rp"
    dataProvider="{ws.getMethod1.lastResult}">
    <mx:VBox label="{String(rp.currentItem.catname)}"
    backgroundColor="#C0C0C0" width="100%" height="100%"
    paddingRight="10">
    <output:comp catid="{rp.currentItem.catid}"/>
    </mx:VBox>
    </mx:Repeater>
    </mx:Accordion>
    </mx:Application>
    the component code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%"
    height="100%"
    focusIn="ws.getMethod.send()"
    horizontalAlign="center"
    backgroundColor="#FFFFFF">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    [Bindable]
    public var thisWsdl:String = '
    http://localhost/webservice/service.cfc?wsdl';
    [Bindable]
    public var catid:int;
    ]]>
    </mx:Script>
    <mx:WebService id="ws"
    wsdl="{thisWsdl}"
    useProxy="false"
    showBusyCursor="true"
    fault="Alert.show(event.fault.faultString, 'Error');"
    concurrency="multiple" requestTimeout="30">
    <mx:operation name="getMethod2">
    <mx:request>
    <catid>{catid}</catid>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:DataGrid id="itemGrid"
    dataProvider="{ws.getMethod2.lastResult}" width="700"
    height="250">
    <mx:columns>
    <mx:DataGridColumn width="100" dataField="itemid"
    headerText="Item Id"/>
    <mx:DataGridColumn wordWrap="true" dataField="itemname"
    headerText="Item Name"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:VBox>

    Perhaps you could use the change event of the accordion, or
    the show event of the child containers?
    Tracy

  • Spry:state and dynamic accordion

    When I use a dynamic accordion (i.e. populated by a dataSet),
    the accordion functionality disappears. Here is my code. Am I doing
    something wrong, or is this just a bug?
    Thanks
    Andy
    <div spry:region="dsOrders">
    <div spry:state="loading">Data is
    loading...</div>
    <div spry:state="error">Error loading
    data...</div>
    <div spry:state="ready">
    <div id="orders" class="Accordion">
    <div class="AccordionPanel" spry:repeat="dsOrders">
    <div class="AccordionPanelTab"><h3
    spry:content="{ORDERNUM}"></h3></div>
    <div class="AccordionPanelContent"><span
    spry:content="{ORDERDATE}"></span></div>
    </div>
    </div>
    </div>
    </div>

    This might also be helpful to some. Not only do we have
    states in SPRY... but events! Here is how I did it on a site that
    has a dataset called dsOpportunities. The following HTML/Javascript
    was added to the head tags of the HTML. Then the on <body
    onload="afterReady()" > was used to make sure it was run.
    Remember that your section you are hiding needs to have a class
    with the same senario. (Or if it is unique you could do something
    simular with ID rather than class.
    <script>
    function afterReady() {
    $('pageContent').style.visibility = 'hidden';
    var iSPRY = new Object;
    iSPRY.onPostLoad = function(dataSet,data) {
    $('pageContent').style.visibility = 'visible';
    dsOpportunities.addObserver(iSPRY);
    </script>
    <style>
    .pageContent {
    visibility: hidden;
    </style>

  • Page length doesn't snap to accordion height when accordion at page bottom becomes shorter?

    Hello, I created a page with an accordion widget at the bottom of the page and rather than snapping to the height of the accordion the page sticks to the length of the tallest accordion height. You can see my test page at http://hawksgym.com/cesarnoel/   Is there something I can do or will I have to resort to all the accordion divs always adding up to the same height?

    Hi,
    Do you have Sticky Footer Checked? If yes, please uncheck it and then try.
    Regards,
    Aish

  • Dynamically stretch height for panelTabbed

    Hello,
    I have dynamical content (height of it can be changed by buttons) in one tab in panelTabbed.
    So I've tried to set the style for panelTabbed: inlineStyle="min-height:620px;" and I've expected that panelTabbed will be stretching in height. But it didn't.
    Is there any solutions for this problem? In documentation i've found that for stretching content <af:panelStretchLayout> should be used, but I failed to do this.
    Thank you.

    Try to use panelStretchLayout & its height/width can be stretched using topHeight/bottomHeight/startWidth/endWidth attributes.

  • Dynamic Accordion Children/Height Issue

    Hello,
    I am fairly new to flex, so this issue may actually be an easy fix, but please bare with me.
    I have an accordion in my project that is being populated with child canvas containers based on the result of a mysql_query from AMFPHP. Due to space limitations the accordion MUST remain the exact same size no matter how many records come back from my query. My problem is that when too many accordion child containers are generated they overlap on top of each other.
    Is there a way to turn a scrollbar on for the accordion? If not then is there a way to limit the number of child containers displayed inside the accordion and then control that with a VScrollbar?
    Thanks,
    Brian

    Wrap the Accordion in a VBox and you should be all set.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          import mx.containers.VBox;
          private function init():void{
            for(var a:uint=0;a<100;a++){
              var vb:VBox = new VBox();
              vb.label = "MyVBox" + a;
              vb.width = 200;
              vb.height = 100;
              acc.addChild(vb);
        ]]>
      </mx:Script>
      <mx:HDividedBox width="100%" height="100%">
        <mx:VBox width="50%" height="100%"/>
        <mx:VDividedBox width="50%" height="100%">
          <mx:VBox width="100%" height="50%"/>
          <mx:VBox width="100%" height="50%">
            <mx:Accordion id="acc" width="100%" height="50%"/>     
          </mx:VBox>
        </mx:VDividedBox>
      </mx:HDividedBox>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • Dynamic overall Accordion height

    I have several Spry Accordions in my application. The number
    of panels in each of these accordions are database driven, where
    each user can customize the number of panels and their titles. The
    new SpryNestedXMLDataSet is used to show the data in each panel.
    This works extremely well!
    However, the layout of the page dictates that the overall
    height of the accordion be the same, weather it be for 3 panels or
    for 10 panels. Is there a way that this can be achieved in
    Spry?

    Hi Ben,
    now I see your request....
    you want a fix height container in which to have the
    accordion with X panels...
    You can add the accordion inside another div container for
    which you set a fix height and don't forget to add also
    overflow:auto (this is to see only the content what fits in the
    height you specified).
    You should have something like this:
    <div style="height:600px; overflow:auto;">
    <div id="Accordion1" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 1</div>
    <div class="AccordionPanelContent">
    <p>Content 1</p>
    </div>
    </div>
    ....... as much panels you need...
    </div>
    </div>
    So just add a new div with that two properties around the
    accordion.
    Please let me know if I answered to you question,
    Diana

  • Dynamic Accordion 2-Levels deep

    Hello,
    I'm relatively new to FLEX and I am having a problem
    referencing a dynamically named UI object to add a child to.
    I am building a menu with an accordion, adding tab sections
    using the addChild method, and then trying to add link buttons
    within each tab section. No matter how I try to reference the
    dynamically named tab section, nothing seems to work....
    any help would be appreciated.
    A graphic of my layout can be viewed here to better
    understand the problem I am trying to solve.
    click here for
    graphic
    There are 3 panels and empty accordians (hardcoded in the
    mxml) ,
    I retrieve from a database a list of tabs I want to display,
    loop through and add to the accordian in which it belongs.
    This works up to this point and adds all the children
    correctly, but trying to add children (link buttons) to those newly
    added children (tab sections) is where I'm tripping up....
    my code follows;
    private function
    getSubCategoryTypes_ResultHandler(event:ResultEvent):void{
    acSubCategoryTypes = ArrayCollection(event.result);
    for ( var i:int=0; i < acSubCategoryTypes.length; i++ ) {
    var iPanel:int = acSubCategoryTypes
    .PanelSort;
    var iTab:int = acSubCategoryTypes.TabSort;
    var tabID:String = 'TB'+ iPanel + "-" + iTab;
    accordion_addChild(this['Ac'+ iPanel], acSubCategoryTypes
    .TabTitle, tabID)
    private function accordion_addChild(accordion:Accordion,
    childTitle:String, tabID:String):void{
    var vbox:VBox = new VBox();
    vbox.label = childTitle;
    vbox.id = tabID;
    vbox.percentWidth = 100;
    vbox.percentHeight = 100;
    accordion.addChild(vbox);
    // this is where I call the function to get the list of links
    I want to populate the accordian sections with.
    createLinks(childTitle); //
    private function createLinks(tabName:String):void {
    RO_SecurityMenu.getLinkList(tabName);
    private function
    getLinkList_ResultHandler(event:ResultEvent):void{
    acLinkItems = ArrayCollection(event.result);
    for (var i:int=0; i < acLinkItems.length; i++ ) {
    var urlPath:String = acLinkItems.URL;
    var linkLabel:String = acLinkItems
    .Descr;
    var iPanel:int = acLinkItems.PanelSort;
    var iTab:int = acLinkItems
    .TabSort;
    // but I cannot seem to reference it correctly when it is
    dynamically named.
    var vbox:VBox = this['TB'+ iPanel + "-" + iTab];
    var linkButton:LinkButton = new LinkButton ();
    linkButton.label = linkLabel;
    linkButton.id = linkLabel;
    linkButton.data = urlPath;
    linkButton.addEventListener(MouseEvent.CLICK,
    application.followLink);
    // if I hardcode this line to a hardcoded accordian tab
    section it works.....
    vbox.addChild(linkButton);
    I have been pulling my hair out trying to get this to work...
    I don't have much left!!!
    Any help would be appreciated greatly!!
    Thanks,
    Kevin

    I was able to achieve this using a different method;
    1. Returning XML instead of a query object from my remote
    object.
    2. Loop through the XML nodes using nested repeaters hard
    coded in the mxml.
    code follows;
    <mx:Panel width="100%" height="33%" layout="vertical"
    id="panel1" title="">
    <mx:Accordion id="Ac1" width="100%" height="100%" >
    <mx:Repeater id="repeatAc1" dataProvider="{MenuXML.tab}"
    >
    <mx:VBox width="100%" height="100%"
    label="{repeatAc1.currentItem.label}" >
    <mx:Repeater id="repeatlinkAc1"
    dataProvider="{repeatAc1.currentItem.link}" >
    <mx:LinkButton label="{repeatlinkAc1.currentItem.label}"
    data="{repeatlinkAc1.currentItem.url}" click="followLink(event)"
    />
    </mx:Repeater>
    </mx:VBox>
    </mx:Repeater>
    </mx:Accordion>
    </mx:Panel>
    this is a sample of the XML data I'm returning from the
    remote object;
    <panel>
    <panelID>3</panelID>
    <tab>
    <label>Fund - Portfolio Profile</label>
    <link>
    <label>Investor Information</label>
    <url>index.cfm?DocID=</url>
    </link>
    <link>
    <label>Subscription Lender Information</label>
    <url>index.cfm?DocID=</url>
    </link>
    </tab>
    <tab>
    <label>Legal Documents</label>
    <link>
    <label>Subscription Agreements</label>
    <url>index.cfm?DocID=</url>
    </link>
    <link>
    <label>Private Placement Memorandum</label>
    <url>index.cfm?DocID=</url>
    </link>
    <link>
    <label>Limited Partnership Agreement</label>
    <url>index.cfm?DocID=</url>
    </link>
    <link>
    <label>Amendments to LPA</label>
    <url>index.cfm?DocID=</url>
    </link>
    </tab>
    </panel>
    Thanks Kaotic101 for your help earlier!
    Kevin (Kdub)

  • Dynamic table height for Printed PO Report

    I have created a RTF template for Printed Purchase Order report using Microsoft Word. The template has Header and Line information. I have two questions.
    1) Lines are printed in Table format. I also print header level notes in Line Section.
    If the header notes are blank, I want the line information (line #, Item Number, Description, quantity etc) to be moved to line1. How do I acheive this?
    I want to dynamically adjust the Table height based on the information printing in the line section. The table has two rows. One for Header notes and one for Line information.
    2) Header notes field is placed in Description column of Line Table (MS word). Currently Header notes are printing within the Description column as wrapped text. I want to print Header notes in one line. How do I expand this field to print in one line?
    Thanks,

    Hi,
    Even I faced the same problem, however I have found a workaround to come out of this problem.
    My PO design template has 16 lines, I am counting the number of lines with data and subtracting the same from 16 and inserting that many empty rows to increase the table height.
    I am pasting the code so that it will be useful for others.
    Paste this code before LINES_ROW for-each loop. This will give the number of lines present.
    <xsl:variable name="_XDOFOTOTAL" select="count(.//LINES_ROW)"/>
    Paste this code at the end of the for-each loop.
    <!-- 16 is the maximum number of rows which fits in my page.-->
    <xsl:variable name="_cnt" select="16-$_XDOFOTOTAL"/>
    <xsl:call-template name="countdown">
    <xsl:with-param name="countdown" select="16-$_XDOFOTOTAL"/>
    </xsl:call-template>
    This function you can put it at the end.
    <xsl:template name="countdown">
    <!-- Instead of for loop. -->
    <xsl:param name="countdown"/>
         <xsl:if test="$countdown">
              <fo:table-row keep-together="always">
              <fo:table-cell/>
              <fo:table-cell>
              <fo:block height="13.2pt"/>
              </fo:table-cell>
              <fo:table-cell>
              <fo:block height="13.2pt"/>
              </fo:table-cell>
              <fo:table-cell xdofo:use-attribute-sets="c_33 c_35">
              <fo:block height="13.2pt"/>
              </fo:table-cell>
              <fo:table-cell xdofo:use-attribute-sets="c_33 c_35">
              <fo:block height="13.2pt"/>
              </fo:table-cell>
              <fo:table-cell>
              <fo:block height="13.2pt"/>
              </fo:table-cell>
              <fo:table-cell>
              <fo:block height="13.2pt"/>
              </fo:table-cell>
              <fo:table-cell>
              <fo:block height="13.2pt"/>
              </fo:table-cell>
              <fo:table-cell/>
              </fo:table-row>
              <!-- Call the template again -->
              <!-- The below code is like x=x-1 -->
              <xsl:call-template name="countdown">
                   <xsl:with-param name="countdown" select="$countdown - 1"/>
              </xsl:call-template>
         </xsl:if>
    </xsl:template>
    If some one is having a better solution, please share.
    Regards,
    SURESH KUMAR M R

  • Accordion Height Issue

    I have apage I am working on and testing the Spry and various
    elements on...
    http://www.tommylogic.com/web-design/
    I have the tabs opening fine now and all styled like I want
    it. The issue I am having is on 3 items:
    - When I first try to open and close the panels, the first
    click never opens it. Only after the 2nd or thrird click or tab
    that I click on.
    - When they do open, they open in consistent heights,
    sometimes with a scrollbar, sometimes not.
    -Then when I get one open it wont always show all the
    content in that particular panel <div>.
    - If I close specific panel that is open first, then open
    the new panel, it seems to do a bit better, but not always the
    same.
    I am passing it through like this
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    var acc8 = new Spry.Widget.Accordion("Accordion1", {
    useFixedPanelHeights: false, defaultPanel: -1 });
    All the heights are cleared in the CSS as well.
    Any clues?
    //////////////////////// resolution
    removed extra line and changed var to Accordion1
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", {
    useFixedPanelHeights: false, defaultPanel: -1 });
    and some minor css tweaks in there as well.
    Thanks Anyway... -T

    Wrap the Accordion in a VBox and you should be all set.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          import mx.containers.VBox;
          private function init():void{
            for(var a:uint=0;a<100;a++){
              var vb:VBox = new VBox();
              vb.label = "MyVBox" + a;
              vb.width = 200;
              vb.height = 100;
              acc.addChild(vb);
        ]]>
      </mx:Script>
      <mx:HDividedBox width="100%" height="100%">
        <mx:VBox width="50%" height="100%"/>
        <mx:VDividedBox width="50%" height="100%">
          <mx:VBox width="100%" height="50%"/>
          <mx:VBox width="100%" height="50%">
            <mx:Accordion id="acc" width="100%" height="50%"/>     
          </mx:VBox>
        </mx:VDividedBox>
      </mx:HDividedBox>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • Programmatic openPanels and Dynamic Accordion Content

    I have been trying to add links to programmatically open
    panels in my accordion, which is successfully populated with an XML
    dataset. It doesn't seem to work, (tried using both "simple
    navigation" and "panel index" links).
    This does work when the data in the accordion is hard-coded.
    I created a test page directly from the AccordionSample2 page
    in the samples with Spry 1.5 (all of my files are 1.5).
    I added the programmatic links to open each of the 2 methods
    of populating the accordion on that page, and they don't seem to
    work, either.
    Test Page is here:
    www.imagicdigital.com/spry/AccordionSample2test.html
    I thought perhaps the dynamically created accordion is using
    a different id, so that's why the programmatic linking doesn't
    work, but when I viewed the generated markup with the debugger, it
    appears to use the given id.
    Any thoughts or help? Thanks in advance.

    http://labs.adobe.com/technologies/spry/samples/utils/URLUtilsSample.html
    that might help u out. the bottom example is a tabbed widget
    that gets activated by clicking a link.
    and this;
    http://labs.adobe.com/technologies/spry/articles/data_api/apis/collapsible_panel.html#meth ods
    might help u out to.
    also, u might want to add the
    <script type="text/javascript">
    var a1 = new Spry.Widget.Accordion("Acc2");
    </script>
    part, becouse that is missing, and its giving errors. and if
    u have firebug installed u will see those errors on firefox.
    getfirefox.com <-- firefox
    getfirebug.com <-- firebug

  • Dynamically read height and width dimensions of .mov

    Hi there!
    I am wondering if anyone knows of a way to dynamically get the height and width dimensions of a quicktime movie, before streaming it?
    The circumstances are this. I have clients who upload quicktime movies to my server. Right now, I use code to embed movies in a fixed size page, but the movies can vary quite dramatically in terms of their dimensions. For example, if the movie is 400px wide, it looks fine in my page. However, if it is 800px wide, it extends out beyond the borders of my page and looks terrible. I could just make a huuge page, but then the tiny movies look ridiculous
    If I could somehow gets the dimensions of a movie before it starts streaming, i could create a large target page for larger movies, and a small target page for small movies. Basically it comes down to being able to somehow dynamically read the dimenions of the movie.
    Is this even possible? Like my boss keeps telling me, it's all just Math isn't it?
    Thanks!!!

    Hmmm...
    I think the movie dimensions are exposed to JavaScript, but only after the movie has opened. So you would have to load the movie into the plugin, then get the dimensions, then use JavaScript to rewrite the page. Which I don't think is quite what you had in mind; you're wanting to collect this information and deal with it before you write the page.
    Let me see if I have this straight...You are allowing clients to upload movies to your server, and then you're hoping to generate an embedded movie page on the fly in PHP to display the movie just uploaded, correct?
    For a library of movies, you could generate a small database of all the movie dimensions, then just look that data up in the table when you generate the page. The trouble is, I don't know of any way to get the movie dimensions except to get them from QuickTime, and to do that you have to load the movie into either the player or the plugin. You could, for instance, have an AppleScript that looks at each movie and populates the database, but I don't see how you could trigger that to run on upload, and I don't know what kind of server you're using.
    Now here's an idea...If you have some way of arbitrarily reading and parsing the QuickTime file, you can get the dimensions out of the file, but it isn't easy. If you are lucky, the moov atom will include a prfl atom (movie profile) which includes the video dimensions. But the prfl atom is not mandatory, which means you have to look at each trak atom that contains video and examine the size *and position* and accommodate the fact that you may have multiple, overlapping video tracks. But you could get the data by parsing the QT atoms yourself. All the data you need to do that is here:
    http://developer.apple.com/documentation/QuickTime/QTFF/QTFFPreface/chapter1_section1.html
    ...and may God have mercy on your soul!
    Seriously, though, you CAN parse a QT file, and that might be the best (though obviously not the easiest!) way to get the data you want dynamically. QuickTime does help you out by giving you all the offsets for all the atoms, but it can be tricky!
    --Dave Althoff, Jr.

  • Manupulating Jquery Accordion height

    Hi all,
    I have downloaded accordion css and its js from jquery website and have implemented accordion in our application. Has anyone played with its js or css to decrease or increase the height of the header title of all the regions included in the accordion? Pls help. Its urgent. Thanks
    With Regards,
    Sunil Bhatia

    If any one having similar issue here is the solution.
    Just replace the Template code from [Patrick's solution|https://forums.oracle.com/forums/thread.jspa?messageID=4429587] with the below one :
    <div id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
    #BODY##SUB_REGION_HEADERS##SUB_REGIONS#
    </div>
    <link rel="stylesheet" href="#IMAGE_PREFIX#libraries/jquery-ui/1.8/themes/base/jquery.ui.accordion.css" type="text/css" />
    <script src="#IMAGE_PREFIX#libraries/jquery-ui/1.8/ui/minified/jquery.ui.accordion.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    apex.jQuery(function() {
      apex.jQuery("##REGION_STATIC_ID#").accordion({
                   autoHeight: false
      var autoHeight = apex.jQuery("##REGION_STATIC_ID#").accordion( "option", "autoHeight" );
      apex.jQuery("##REGION_STATIC_ID#").accordion( "option", "autoHeight", false );
    </script>Rest all remains same.
    Good luck.

  • Accordion Height

    Hi All,
    How can I provide the getHeight() Api for accordion.
    I am aware about maxHeight property of accordionSection.
    But my requirement is to implement getHeight() api on accordion, which will take care of all the sections heights, expanded section and also browser specific paddings. in essence resizing should also be considered.
    Has anyone tried this?
    Any pointers would be helpful.
    Thanks.

    Please mark this Discussion with a Correct Answer and Helpful Answer where appropriate.  See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why   Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be.
    Regards, Mike
    SAP Customer Experience Group - CEG

  • Dynamically setting height to 100%

    How do you dynamically create a container/control and set
    it's height to 100% in ActionScript?
    control.height = 100% doesn't work

    control.percentHeight = 100;

Maybe you are looking for

  • Internet disconnects

    I have three WiFi Macs and one connected directly to a Airport express in WDS mode. I've got another APX also in WDS mode in my loft, and then my main APX connected to my DSL modem. Lately Airport has been randomly dropping the Internet (will display

  • Moving saved .eml files into Outlook

    I have thousands of saved .eml files, to move into Outlook 2010. However - when I drag and drop them into the folders on Outlook 2010 - every file has the "date received" as today's date ( in past scenarios where I've done this - it automatically sho

  • Desktop Manager installati​on

    Even a Level 2 BB technician could not successfully walk me through installing Desktop Manager for my new Sprint 9930 (I considered Q10 but got cold feet). I had had Desktop Manager for an 8530, version 5.0. He tried to delete all old BB softward but

  • IPAD 2 - unable to download from app store

    HI All, i am unable to download any free application from app store , error:- could not sign in unknown error, i have tried shutting down the i pad , upgrading to os 6, resetting the password but still the same error, please guide me how can i resolv

  • Imovie don't want open!

    I closed imovies and immediatly wanted to open it again and the software refuse to open/respond. There is also a small arrow pointing in an upward direction below the iMovie icon. I am a new Applec Mac user - please advise me what I need to do to res