Accordion - Ajax within accordion panel resize issue

Hi,
I'm in a little bit of a fix.
I have an accordion whose panels have ajax enabled regions
within them.
The ajax enabled regions have search forms which give a
search result within the same page (which is basically within the
panel as well) once a button is clicked.
My issue is that once I click search, my result set increases
the size of the page causing the accodion panel to enable a scroll
bar. Is there some way in which I can have spry resize the panel
instead of it enabling a scroll bar?
If I open and close the tab ofcourse, the region is resized
to cater to the search results as well with no scroll bar.
Incase this is not possible, is there a way to reopen the
selected panel on a page refresh event as all the tabs are closed
when a refresh occurs.
Thanks!
When the accordion opens up, it shows

Hi kundalani,
If you are using Spry.Utils.updateContent() to load the
contents of the panel, you can pass in a callback that sets the
height of the AccordionPanelContent to "auto" after the new content
has loaded:
function LoadContent(ele, url)
ele = Spry.$(ele);
Spry.Utils.updateContent(ele, url, function() {
ele.style.height = "auto"; });
<a href="#" onclick="LoadContent('e1p2',
'../../data/frag1.html'); return false;">Frag 1</a> |
<a href="#" onclick="LoadContent('e1p2',
'../../data/frag2.html'); return false;">Frag
2</a></p>
<p> </p>
<div id="example1" class="Accordion" tabindex="0">
<div class="AccordionPanel">
<div class="AccordionPanelTab">Panel 1
</div>
<div id="e1p1" class="AccordionPanelContent">
<p>Panel 1</p>
</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Panel 2
</div>
<div id="e1p2" class="AccordionPanelContent">
<p>Panel 2</p>
</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Panel 3
</div>
<div id="e1p3" class="AccordionPanelContent">
<p>Panel 3</p>
</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Panel 4
</div>
<div id="e1p4" class="AccordionPanelContent">
<p>Panel 4</p>
</div>
</div>
</div>
<script type="text/javascript">
var example1 = new Spry.Widget.Accordion("example1", {
useFixedPanelHeights: false });
</script>
--== Kin ==--

Similar Messages

  • Problem with Accordion Widget INSIDE Sliding Panel Widget

    Hello,
    perhaps I should not do this, but I nested an Accordion
    Widget inside a Sliding Panels Widget:
    - There are eight Panels.
    - Each one contains a complete Accordion.
    The sliding works fine, and so does the Accordion animation,
    but the text inside the Accordion Panel Tabs won't move along, when
    a tab is activated. I need to hover the mouse over the accordion to
    make the panel texts appear again.
    Of course, when I un-nest the widgets and move the Accordion
    widget out of the Sliding Panel widget, everything is fine.
    My question is:
    - am I demanding "too much" by nesting the widgets?
    - or should this basically work, and the problem arises from
    rivalling scripts?
    Here is a link:
    Nested
    widgets Test
    The horizontal top menu will activate the sliding panels, but
    as of now only the leftmost menu item contains an Accordion (I know
    the CSS does not look nice yet).
    Is there anything I can optimise to get this to work?
    Thank you so much,
    Greetings, Jensen
    Edit: The problem does NOT occur in Firefox, but in
    Safari.

    Hi John,
    That is the expected behavior if the "Overlap items below" is unchecked. Please refer to the following link http://screencasteu.worldsecuresystems.com/aish/2013-08-21_1947.png. If you don't want the page to wiggle up and down, please check the box shown in the screenshot.
    Regards,
    Aish

  • Resizing & Positioning Children within a Panel

    I'm trying to insert an element into a Panel that has a vertical layout, and create a transition that smoothly inserts the new item in between 2 existing items in the base state of the application.  My goal is for the bottom text field to remain anchored to the bottom of the panel as the panel resizes, instead of jumping to its new position, so that the middle text input can then gracefully fade in.
    Am I just missing something in how I'm defining the transitions, or will the effects not yet account for the positioning of items from layout?  Attached is the MXML app and the compiled SWF.
    Thanks.

    This will get you what you want. There's a tricky interaction between adding the new element and the vertical layout. The third item won't make room for the second one unless the second one is actually added to the parent. But adding it will immediately make it visible, which is not what you want. So I tweaked the effect to add it but make it non-visible (alpha==0), then Resize the second element itself (the panel will resize automatically), *then* fade in the second element.
                <s:Sequence>
                    <s:SetAction target="{secondTxt}" property="alpha" value="0"/>
                    <s:Resize target="{secondTxt}" heightFrom="0"/>
                    <s:Parallel>
                        <s:Move target="{thirdTxt}" />
                        <s:Fade target="{secondTxt}" alphaTo="1"/>
                    </s:Parallel>
                </s:Sequence>
    Chet.

  • Button interactions within Scroll Panel/Content

    I am creating a portfolio website using Flash Catalyst. On my Portfolio page I have a vertical scroll panel and within that panel I have little thumbnails of my artwork converted to a button component. So when the user click on the thumbnail I want the larger image to appear nearby. I make new states for the larger images within the scrolling content, but whenever I use the scroll thumb it also scroll the larger images that i want it to be in a fixed position. So is there anyway I can lock the larger image while user is able to scroll through the thumbnails. If not possible, is there anyway i can duplicate the events on the timeline from one page/state to another similar one?
    If there is a better way to accomplish this please let me know too, I am all ears. If you need clarification on my issue, I will try my best to explain it through texts.

    Hi,
    Here's a quick wireframe to illustrate the thumbnail separate from the detail image.   The large images could be in their own custom component or in different states in the main timeline (per this example).
    The scroll bar needs be edited to look nicer.
    Hope this helps.
    Tanya

  • Problem with panel resize option

    Hi all,
    I am working on an application which i want to run on all the different resolutions. So, i searched the whole LV forum to get the solution for my problem.
    after going through many related discussions i found that one should develop the app in the min resolution which it should support and in the VI properties the option for panel resizing should be tick marked.
    i did exactly the same, but still couldn't get it worked for my application.
    i am developing my app on 1024*768 resolution. it runs fine on the same resolution if i don't tick mark the resizing option. but, when i tick mark the option and run the app on the same resolution, it crops some part from the bottom.
    I am attaching the picture of the interface when run with resizing option and without it.
    Pls look into the prob and let me know how can i make it work?
    Thanks,
    Ritesh 
    Attachments:
    Interface_With proportions.JPG ‏95 KB
    Interface_Without proportions.JPG ‏103 KB

    For a GUI of this nature, there is no easy answer to this problem.  Search the forums for "large font" to get many examples of how people have solved this issue.  I usually bite the bullet and handle all resizing myself.  An example of this can be found here.
    Since you want to cover the entire workspace, you need to know what this is.  There are two VI server methods which will give you pieces of this information.  Display:All Monitors will give you the valid coordinates for all monitors attached to the computer.  Display: Primary Workspace will give you the useable workspace of the primary monitor.  This does not include the space used by the Windows taskbar (and, I assume, the GNOME, OS X, or KDE equivalents, but have not verified this), so is different from the area given by the first property.  You can fairly easily determine which display is the primary workspace by checking bounds, but do not assume that the taskbar is on bottom of the display when you do this.
    If you have problems finding information or something is not clear, let us know.
    Message Edited by DFGray on 03-03-2010 08:10 AM
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • No icons within Control Panel, Administrative Tools Folder

    I believe this problems relates to a terminal services policy package as
    the problem only exists on our Citrix Metafrme servers. Regardless of who
    logs onto the console of any of our 6 Citrix W2K servers, within Control
    Panel, Administrative tools, there are either 0 icons or 2 .NET framework
    icons only. I can however access all icons in Administrative Tools by
    going through Start, Programs, Administrative tools.
    Can anyone assure me that this is a policy issue and where the settings
    are as I'm ****ed if I can find them?
    Thanks
    Lenny

    Lennyd,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Please help-Trying to compress to Mpeg-2 for Convention, also resizing issues

    Hello,
    I just recently finished making an AMV in Adobe Premiere 5.5, and I am having trouble trying to figure out how to compress it into an Mpeg-2 source for a competition/convention.
    I also have these massive black borders on the side of my video that I know is probably due to improper resizing on my part, and although I have tried to remedy this with a new avisynth script of the exported uncompressed AVI (before compressing to MPEG-2), whenever I try to run the avisynth script in either VirtualDubMod or TMPGEnc (the converting program recommended by: http://www.animemusicvideos.org/guides/mpegforcons/) it crashes, although the original video does work.
    This is the avisynth script I have created for the post-video:
    FFVideoSource("C:\Users\Freeman\Desktop\Fight the Power.avi")
    FFCopyrightInfringement("C:\Users\Freeman\Desktop\Fight the Power.avi")
    AssumeFPS("23.976")
    SSRC(48000)
    LanczosResize(720,352)
    AddBorders(0,64,0,64)
    per the recommendations from the guide listed below
    I do not know if the resizing I have set up in the new avisynth script will fix my resizing issues, and I would like to improve that as much as possible, so if someone could clarify for me, that would be greatly appreciated.
    You may also notice some audio issues throughout the video, however on further playback this never appears to happen in the same place. I believe this is caused by poor audio quality, and I have a friend of mine working on setting up a lossless source that I will try to recompress with the video before friday, however if someone else might know what is causing this, any advice would be greatly appreciated.
    Here is the current MPEG-2 I have, however for obvious reasons, I do not consider it acceptable as of yet:
    http://www.megaupload.com/?d=IIKYWRXF
    The original export from Premiere is Microsoft AVI Uncompressed, and then attempted to convert to MPEG-2 (I tried multiple settings, they all have the same sizing issues), and as I said before, no matter what I try to do with the avisynth script, it crashes.
    I have even tried taking out every line from the new avisynth script except for the first two detailing the location of the video and audio, however this does nothing, it still crashes.
    I had to convert all my original source avisynth scripts to AVI files (that are massive, as I am editing from 52 episodes of Fullmetal Alchemist: Brotherhood), and so editing the original scripts is impossible at this point, because to my knowledge, that would mean I would have to reconvert them all to AVI, which took over 16 hours, and then that would probably make me have to re-edit this entire video (which if you look at it, based on length and how much work I've put into it: is impossible, especially given the time constraints).
    So anything that I can do to fix this will have to be done to the export from Premiere, unless there is a way to work with the AVI's that I made from the avisynth scripts.
    The source is primarily 16:9 DVD (Fullmetal Alchemist) and very few parts from a 4:3 DVD (Naruto). (You can recognize these parts in the video, it is whenever someone is rowing in a boat during the lyrics "Row Row")
    The avisynth script for all the fullmetal alchemist DVD's is as follows:
    mpeg2source("F:\DVD RIPS\Music Video Rips\Brotherhood\Disc 1 (1-7)\MainMovie\FMA_BROTHERHOOD_P1_D1\FMAB 1-7.d2v", cpu=4)
    ConvertToYV12()
    Spline36Resize(848,480)
    #TTempSmooth()
    FastLineDarkenMod()
    LSFmod(strength=120)
    LUTDeRainbow()
    And the avisynth script for the one Naruto DVD is as follows:
    mpeg2source("F:\DVD RIPS\Music Video Rips\Random\Row Row\MainMovie\ROW ROW\VTS_01_1.d2v")
    TFM()
    TDecimate()
    Spline36Resize(848,636)
    Crop(0,78, 0,-78)
    These recommendations came from what I could figure out from:
    http://www.animemusicvideos.org/guides/avtech31/
    If anyone is curious, the song is "Libera me from Hell", and it is 44100 from what I could tell when I ran it in WINAMP (I converted it from mp3 to wav through WINAMP, if there is a better way that I am unaware of, please let me know).
    I know this is extremely long, and thank you anyone who has taken their time to look through it, it is greatly appreciated.
    The deadline for this is friday (5/20/11), so I need help with this ASAP and thanks,
    Dexter

    Dexter,
    Those "black borders," if they are visible in the Program Monitor, are most likely due to a mis-match between the Source Files and the Sequence Preset.
    If they are only showing up upon Export, then there is likely a mis-match between your Sequence and your Export, and could be either with the Aspect Ratio, or if using non-square pixels, the PAR (Pixel Aspect Ratio).
    I'll defer any commens on AVISynth to the experts here.
    Good luck,
    Hunt

  • Is there a way to achieve 'Panel Resize Event Filter' like function?

    Gopalakrishnan P
    Hi all,
    Panel resize filter is not available in Event structure. So if I use the below code, on pressing the maximize button, windows will maximize the front panel and later LabVIEW brings it back to the mentioned size. There will be a flicker during this operation. To avoid this flicker, is it possible to disable windows OS to perform maximize event or to set the default window maximum size in windows or any other way to implement this?
    The maximize button should not be disabled, but  have to maximize the panel to a specific size without that flicker. What I'm actually trying to do is to use windows messaging queue to capture the maximize event and then implement the same through LabVIEW. Related example is in this link http://zone.ni.com/devzone/cda/epd/p/id/4394 
    Has anyone tried solving a similar problem by this method?
    Also please suggest if there is any other way to achieve this.
    Gopal
    Thanks,

    Hi Krishgopal,
    Please try the following method
    File»VI Properties and choose Window Appearance from
    the Category pull-down menu.
    Click the Customize button and Deselect  the option : Allow user the resize window
    Attached is a screenshot of the same.
    Please let me know if this is able to help you out.
    Regards,
    Ankur
    Attachments:
    No_Resize_Front_Panel.pdf ‏274 KB
    Sample_NoResize.vi ‏6 KB

  • Limit Panel Resize to One Dimension?

    Is there an easy way to limit panel resizing to a single dimension? That is, can I make a front panel that allows resizing the HEIGHT but not the WIDTH?
    What would be nice is if there was a way to set the "VI Properties>>Window Size" MAXIMUM size along with minimum (default to <Inf>). But I would settle for a programmatic way to do it, too. I tried making a UE to catch the <Panel: Resize> event, and replace the "Left" and "Right" bounds of the NewBounds with those of the OldBounds, but that ended up doing some wonky stuff.
    Anyone out there found a solution for this problem?
    [I should add, I'm still running LV 8.6.1...maybe this has been addressed in later versions?]

    I'm pretty sure that there isn't, as I don't think Windows supports it and resizing windows is presumably handled by it.
    If there's a window message associated with the resize, you might be able to intercept it using some platform-specific code, but that's beyond the realm of my own experience.
    One thing you can try to do is disable the resizing completely and then add your own resizing logic and code (such as buttons near the edge which will expand or compact the UI by X pixels). I think this is what you usually see in programs which allow expanding in only one direction (although usually the buttons expose an entire pane at once).
    Try to take over the world!

  • Panel Resize - how to tell when mouse released?

    I need to programmatically resize all my controls when the panel is resized.  I can't use the automatic option, as I have some specific things to do, e.g. some controls stay at fixed size, others resize.
    I've used an event structure and am doing the resizing on the "Panel Resize" event.  The problem is that this takes a little time, mainly as one of the controls is an Adobe Reader ActiveX control, which takes a little time to rescale and redraw.
    The result is that the VI seems to queue up the events as the panel is resized - if you grab the corner of the window and move it around, the VI then sits and ploughs through all the events that were created as it was resized.
    What I'm really after is an event that fires after the panel has been resized and the mouse has been released.  Is there a way of achieving this?
    Thanks

    There's no event for this, but you can filter your events, for example, like this:
    There are other variations on this (setting a flag, using a case structure in the original event case, etc.).
    Try to take over the world!
    Attachments:
    Example_BD.png ‏2 KB

  • Panel within a Panel

    Hi,
    how can i add a panel within a Panel or to update the second panel within a panel having the same frame.
    pls advise.
    bunch of thks

    I don't know if this is what you're wondering, but this code adds a panel to a panel.
    JPanel panel = new JPanel();
    JPanel subPanel = new JPanel();
    panel.add(subPanel);Josh

  • Front panel resize delay

    Hello,
    I am developing GUI that needs to look nice and user will have option to resize it. Since scale as the window property works bad I wanted to use panel resize event.
    But there is delay - controll is resized some time after I resize front panel and that looks bad. When I look on project window or error list it resizes instantly. 
    Why I can't achieve that result in Labview??
    I could always read panel size lets say every 10ms and calculate ontrolls size based on that,  but is there better option using this panel resize event??
    Solved!
    Go to Solution.

    Right click on the pane (right click in the bottom right hand corner) and select the 'Scale objects while resizing' option.
    That should fix it for you
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Has the wallpaper resizing issue been fixed for iOS7?

    When I upgraded to iOS7, I immediatley downgraded back to iOS6 because I was unable to resize my wallpaper picture and I didn't care for the new look. Does anyone know if the resizing issue has been fixed???

    You mean for the Lock Screen, how it won't let you shrink it?
    No, that issue still exists in 7.0.3.

  • Panel resize event bug?

    I'm having a bit of hassle with a panel resize event.
    For reasons best known to me, I have some parallel loops monitoring certain UI behaviour and reacting appropriately.
    I have noticved that when a loop which is monitoring the "Panel Resize" event stops, (No dynamic registration) the next panel resize will freeze the VI.  It's as if the Event case is not releasing the handle to the "Panel resize" event.
    If I handle the "Panel Resize" event via a dynamic registration and subsequent release, everything works fine.
    This is in LV 8.2.1.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant
    Attachments:
    Freezes.vi ‏22 KB
    Doesnt freeze.vi ‏24 KB

    tst wrote:
    I think this has to do with LabVIEW locking the FP (as configured) even when the event structure should not execute any more. I actually created a simple example of it recently, but saved it in one my projects instead of where I would see it, so I forgot about it. I now dug it up and back saved it to 8.0. You can also simplify this example by removing the value change event and making the key down event lock the UI.
    Message Edited by tst on 11-10-2008 02:14 PM
    Sorry Yair,
    but this is not a bug!, it is explainable behaviour and expected behaviour.
    What happens, the front panel is locked on the second edit. (use exectuion high-lighting) The event structure is always listening for events where it is registered for, even if the event case will never execute, on the first edit (key down) the event is triggered and the VI is locked and unlocked. The second edit the event is triggered again and the FP is locked. Because the event structure can't execute the FP stays locked.
    Shane's behaviour is truly a bug.
    The same behaviour is seen with the 'Pane:size' event. (in 8.6)
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Panel Resize respect to Text Size : How To?

    I have a panel named "description", It has only one text
    control named "detail".
    "detail" is a dynamic text control which gets data from an
    xml file and displays the
    detail of required thing.
    things have long and short details.
    I want that Panel resize its height according to the height
    of text control.
    I am a newbie and have no idea.
    Please Help

    Text object resize with the text it holds.
    Add Text object to a VBox and set the width property of the
    Text to 100%.
    It should do what you want.

Maybe you are looking for