Blind Effect - Updating height to fit content

Hi everyone!
I have an html panel which loads up html fragments when a link is clicked - works fine!
I also added a blind effect so that the panel slides up, loads the new content, and slides back down.
This also works, with a queer side effect:
The panel height stays the same as the original content!
This means that if I load a smaller amount of html into the html panel, there is a large gap at the bottom, and if I load a larger page, the bottom is cut off and you cant see it.
So the question is:
how do i tell the blind effect to resize to the new height after the new data is loaded?

Thanks Alejandro. I also found that to make the textareas available to the script when the page loads, i had to set the table's contentDelivery property to "immediate".
In case anyone else needs this, here is how i adapted the javascript Alejandro had shared:
<af:resource type="javascript">
    function resizeHeight(e) {
    var textAreas = document.getElementsByTagName("textarea");
    for (var i=0, max=textAreas.length; i &lt; max; i++) {
     var textArea = textAreas;
while (textArea.rows > 1 &amp;&amp; textArea.scrollHeight &lt; textArea.offsetHeight)
textArea.rows--;
while (textArea.scrollHeight > textArea.offsetHeight)
textArea.rows++;
textArea.rows++;
</af:resource>

Similar Messages

  • Input Text in Table, autosizing height to fit content

    I've a table with a variety of multi-row inputText components, most of them with the @row attribute set to 2.
    However, one of these fields sometimes has verbose content. Is there a way to configure the InputText component to autosize itself (and the row) to a height that displays all the content without scroll bars? In other words, is there a way to set the text box/column/table so that the height of each row's text box auto-sizes to display all the content.
    I'm aware that a brute force method would be to set the inputText's row attribute to 10; however, since most of the time the text will fit in 2-3 rows, setting it to 10 wastes a lot of real estate.
    Have tried setting various properties without anl luck - here is the current definition of the InputText and the column that contains it:
    <af:column sortProperty="Definition" sortable="true"
                             headerText="#{bindings.NamesBatchApproveVO1.hints.Definition.label}"
                             id="c9" width="450" inlineStyle="height:inherit;">
                    <af:inputText value="#{row.bindings.Definition.inputValue}"
                                  label="#{bindings.NamesBatchApproveVO1.hints.Definition.label}"
                                  required="#{bindings.NamesBatchApproveVO1.hints.Definition.mandatory}"
                                  columns="#{bindings.NamesBatchApproveVO1.hints.Definition.displayWidth}"
                                  maximumLength="#{bindings.NamesBatchApproveVO1.hints.Definition.precision}"
                                  shortDesc="#{bindings.NamesBatchApproveVO1.hints.Definition.tooltip}"
                                  id="it4"
                                  rendered="#{row.bindings.Definition.inputValue != null}" simple="true"
                                  wrap="soft" rows="3">
                      <f:validator binding="#{row.bindings.Definition.validator}"/>
                    </af:inputText>
                  </af:column>Am using 11g.
    Thanks for your help.
    Edited by: user757151 on Nov 15, 2012 11:12 AM

    Thanks Alejandro. I also found that to make the textareas available to the script when the page loads, i had to set the table's contentDelivery property to "immediate".
    In case anyone else needs this, here is how i adapted the javascript Alejandro had shared:
    <af:resource type="javascript">
        function resizeHeight(e) {
        var textAreas = document.getElementsByTagName("textarea");
        for (var i=0, max=textAreas.length; i &lt; max; i++) {
         var textArea = textAreas;
    while (textArea.rows > 1 &amp;&amp; textArea.scrollHeight &lt; textArea.offsetHeight)
    textArea.rows--;
    while (textArea.scrollHeight > textArea.offsetHeight)
    textArea.rows++;
    textArea.rows++;
    </af:resource>

  • Transparency effects are not updated on frame's content change(shardow, etc.)

    Hello everyone.
    I've faced the following problem:
    My shape, which is based on CGraphicsFrameShape and kSplinePageItemBoss does not update it's transparency effects after changing own content.
    The content is drawn by AGMImageRecord and IGraphicsPort::image. I also use IXPUtils::CreateImagePaintServer,IGraphicsPort::SetAlphaServer for drawing image with some transparecy mask ( the idea is stolen from SDK's sample "Transparency effects" ).
    When user sets some transparency effects, and then changes the content of the shape - the effect (eg. shadow) presists from the previous content. It is updated (sets as a shadow for current content) only when user resizes the shape.
    I tried Inval method, DrawPageItemAdornments method, InvalPageItemAdornments method, but nothing works - the shadow still gets updated only on frame's resize.
    What can be done, and what guru do in such cases?

    And one more moment - this happens only when display performance is set to "typical". When "high quality" is set - everything updates well.

  • Shouldn't object style with 'fit content to frame' work with updated images?

    I have a script that places pdf files from a list onto pages. The rectangles are built with an object style that fits content to frame.  This works,  but if the pdf file is then modified, InDesign does not fit the new content to the frame when the link is updated. Is there a reason why the object style does not honor its settings?
    Thanks.

    I have a script that places pdf files from a list onto pages. The rectangles are built with an object style that fits content to frame.  This works,  but if the pdf file is then modified, InDesign does not fit the new content to the frame when the link is updated. Is there a reason why the object style does not honor its settings?
    Thanks.

  • Fitting Content to Frame to a Path or Mask

    We have been asked by a customer to try and achieve the following:
    They have a number of eps's of a flat screen TV's. For each TV, there is a path around the outside. We will call this Path 1. There is a second path around the screen of the TV. We will call this Path 2.
    Is there a way of placing another image, and fitting content to frame (just like in Indesign), using Path 2 as the bounding box?
    We are using both CS3 and CS4.

    Mark, while Scripts may not be necessary they can add a level of convenience unattainable with Actions.
    As concerns the PAID HELP, the Photoshop Scripting Forum has a couple regulars who, while they may offer their services professionally, still give their advice freely; but in case Adam has no Scripting-experience his needs, should he choose to try a Scripting-solution, might exceed »advice«.
    Having only recently started to appreciate and utilize the capabilities of JavaScript for Photoshop myself I may appear overzealous in advocating it, but everybody will have to decide for themselves if they want to give it a try.
    With possibly hundreds of images I wouldnt want to rely on the screens (or their paths) to all have the same diameter and a Script can allow for that with transforming the placed image according to the height or width so as to always fill the area completely (thus clipping at the top/bottom or left/right depending on the relation).
    And (though too complicated for myself) it would be possible to let Photoshop work off folders and not get stuck by the occasional file that doesnt conform to the naming conventions or lacks a path by ignoring it and documenting unedited files at the end.
    Thats always assuming that the photographs of the tv-sets are fairly frontal, because if they are in perspective then the matter gets much more complicated, but what with the allusion to doing it in Indesign I concluded perspectival transformation isnt required anyway.

  • Problem with the Blind effect.

    Hi, i have a problem with the Blind effect.
    I added multiple Image  bars vertically together. With a click on a bar, some text slides out.  With another click on the bar you can slide the text back in. So far so  good.
    Now, always when i click to open or close a window, the  site jumps to a certain point, but i can't exactly figure out where  it's jumping to. 
    Is there an order to fix the position of the bars, so that they don't move, even if I open or close the bars?
    The problem does not appear when im at the bottom of the website.
    thx for your help.

    I figured out the problem I was having with my zoom effect.
    It worked when I added a specific number for height and width.
    Before I had a percent. Try adding a height and width number, it
    worked for me.

  • Need Horizontal Blind effect

    I want to do a HORIZONTAL Slide Effect on an image that
    expose content in a div underneath . I want it to work like the Up
    and Down Blind effect where the content moves up. I can make the
    slide effect work horizontally but the content in the div remains
    in the space UNDER the image. It is as if I want the EFFECTED slid
    image to display as none when the sliding effect is done. I think I
    understand the difference between visibility:hidden and
    display:none but not sure how to use it in this situation. I hope
    this makes sense

    Hello,
    Have you tried the option horizontal:true If this doesn't work it would probably mean its not possible unless you decide get dirty with the code and patch it.
    ~ Arnout

  • Gray/blue/purple screen with faint blinds effect during use, how to fix it?

    Hi, I have a 20'' iMac (2009) running Snow Leopard and sometimes during use the entire screen goes gray (or purple or blue) with a faint "blinds" effect (vertical stripes). It doesn't do anything and I don't seem to be able to leave it, there are no visible menus, buttons or anything, nor does it show 'loading' or anything but the gray and the stripes, forcing me to forcibly restart the system. Does anyone know what it could be and why?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar              

  • Multiple place and fit content

    I have several chapters of a book done in CS2. These were sent out and edited by a third-party in CS4 (communication issue there).
    So they were backsaved as an .INX file and now I'm using CS3.
    Problem is that the embedded images and links to 20 or so illustrations were not honoured and defaulted to "foo. jpeg" in the links pallette when I opened these in CS3.
    The embedded images (excel graphs) I'm not worried about, it's the linked images which I now have to go in and manually relink.
    The graphic frame and content boundary is intact so re-linking seems to work fine, but I'm wondering If i can select the art and multiple place each image within it's corresponding frame and have the attribute  "fit content proportionately" assigned at the same time.
    Do I use an object style?? I'm not too familiar with this, so if anyone can run me through the simple steps, it would be appreciated.
    Also, I noticed in CS3 that the number of icons for fitting content are reduced on the toolbar (see image circled) compared with CS2?
    Are the options to "fit content to frame, center content etc" only available from the drop-down menu or from the short-cuts?
    Thanks in advance,
    Julian

    Peter,
    Yip, those would be the icons I was looking for, but maybe they weren't visible depending on what i had selected, since I swear I looked for them..but there they are in my screenshot
    I was thinking a basic object style with just fram-fitting option selected to "fit content prop.", but I guess you are right in that the time saved would probably be negligible.
    Any idea as to why the links broke - just a consequence of back-saving??
    Julian

  • Update some of the content of a page

    I want to to allow a colleague to update some of the content
    of a page without giving them access to change the whole page.
    How can I do this without using Contribute?

    "David Powers" <[email protected]> wrote in message
    news:f81uqh$sfr$[email protected]..
    > stretchbreak wrote:
    >> How can I do this without using Contribute?
    >
    > Use a server-side include. The changing content can then
    be a simple text
    > file. If your site uses a server-side language, such as
    PHP, includes are
    > automatically supported.
    And even if it doesn't support a server-side language,
    regular SSIs may be
    supported - ask your host.
    Patty Ayers | Adobe Community Expert
    www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet

  • Fit content to a two columns frame

    Hi Experts,
    I need to fit content in to frame (it is a double column). But I can't see any feature in scripting. Manually also I can see fit option only for single column frame. Please advice me.
    thanks,
    Pasu

    Well, that's a bit clearer. How about this -- building on Kasyan's script. The debugging alerts at the start show what properties to check. It fails
    i spectacularly
    if you try this on non-standard frames, f.e., if you put a text wrapping image over part of the first column :-)
    myTextframe = app.selection[0];
    numlines = myTextframe.lines.count();
    alert ("Total: "+numlines);
    numlines_1 = myTextframe.textColumns[0].lines.count();
    alert ("1st column: "+numlines_1);
    if (myTextframe.textColumns[0].lines.count() < myTextframe.textColumns[1].lines.count())
    while (myTextframe.textColumns[0].lines.count() < myTextframe.textColumns[1].lines.count())
    var myBounds = myTextframe.geometricBounds;
    myBounds[2] += 1;
    myTextframe.geometricBounds = myBounds;
    } else
    while (myTextframe.textColumns[0].lines.count() > myTextframe.textColumns[1].lines.count())
    var myBounds = myTextframe.geometricBounds;
    myBounds[2] -= 1;
    myTextframe.geometricBounds = myBounds;
    if (myTextframe.overflows)
    myBounds[2] += 1;
    myTextframe.geometricBounds = myBounds;
    break;

  • CS4 fit content to frame default

    Hi all,
    Just a quicky, we have just upgraded to CS4 at work (late adopters I know!) and we have an issue with how ID CS4 fits the frame to content by default.  The problem with this is it is changing templates of material built in earlier versions of ID, for instance changing ellipse frames to squares, resizing all the frames to fit the content, etc. Is it possible to change this default behavior? All help is appreciated.
    Thanks

    Hi Guys,
    Thanks for the responses and I apologise for the delay in replying, it has been flat out here... Anyway I just want to confirm that the problem still exists. I am unsure how to explain it further although I will try
    When the frame fitting option is set to 'fit content to frame' Indesign applies a 'fit frame to content' which the operator must then undo. This especially occurs when placing content into ellipse or polygon frames. Indesign always applies a "fit the frame to content" (which obviously blows away the shape), the operator must then undo the 'fit frame to content' that CS4 automatically applies (crtl+z).
    Not sure it is related but we also suffer from a one minute delay upon opening Indesign and Acrobat, the windows "csrss.exe" process goes nuts and sits on nearly 100% cpu usage for about a minute before the program becomes usable. It seems related to the number of fonts installed on the system (around 2000) because if I remove all the fonts, delete the adobefnt files and reinstall the fonts the machine runs fine for a week or so before it bogs down again. I know that this file is not a virus, as we run symantec on our machines, also there is only one copy of this process in taskmanager. Also this has happened across multiple machines with varying hardware. Is there a hard limit on fonts?
    Thanks again
    Regards Chris

  • Tables: Fit Content to Frame

    (InDesign CS2)
    Since "fit frame to content" is available when you select a frame that contains a table, but "fit content to frame" is not...I'm assuming it's not possible to do that.
    I understand that a table can lie well within or outside of its frame, and that can be a nice thing. However, what if I want to make sure the boundaries of the actual table, left to right, take up an EXACT width? Seems like making the frame the exact width I need and then having "fit content to frame" available is what I need.
    Am I missing something? Does anyone have a good workaround?

    Lisa,
    This script will do the job (although the interface is a bit primitive. Just type a number in the units you're using for the horizontal ruler. It displays the "before width" and you can then type the number you want instead. It distributes the extra or the deficit across the existing columns of the table.
    //DESCRIPTION: Set Width of Table
    // by Dave Saunders
    if ((app.documents.length == 0) || (app.selection.length == 0)) { beep() }
    aDoc = app.activeDocument;
    aSel = app.selection[0];
    aTable = findTable(aSel);
    tWidth = prompt("Table width", String(aTable.width));
    if ((tWidth == null) || (tWidth == "")) { exit() }
    n = aTable.columnCount;
    w = aTable.width;
    for (j = n-1; j >= 0; j--) {
      aTable.columns[j].width = aTable.columns[j].width * (tWidth)/w;
    function findTable(obj) {
      if (obj.constructor.name == "Table") { return obj }
      while (obj.constructor.name != "Table") {
        obj = obj.parent;
        if (obj.constructor.name == "Application") {
          errorExit("Can't locate table");
      return obj;
    function errorExit(message) {
      if (arguments.length > 0) {
        if (app.version != 3) { beep() } // CS2 includes beep() function.
        alert(message);
      exit(); // CS exits with a beep; CS2 exits silently.
    To use the script, copy and paste to ExtendScript Toolkit and save with an appropriate name in the form YourName.jsx in the Scripts folder of the Presets folder of your InDesign CS2 folder (you could put it in a subfolder if you wish). Then to run the script, set-up the appropriate initial conditions (click with the text tool in the table) and double-click the script's name in the Scripts palette.
    Dave

  • Tabbed panel with adjustable/variable height based on content

    Is there anyway that you can create a tabbed panel with adjustable/variable height based on content in each tab?

    Abhishek,
    Thanks for your reply, however, it is not working with Muse. I added the Javascript to the head section and adjusted iframe and it displays as a small square in the upper left hand corner, unable to view the whole page.
    Inserted into head section --
    <script type="text/javascript">
       function resizeIframe(obj)
      obj.style.height = 0;
      obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
       </script>
    inserted as an html object --
    <iframe name="MycoSmooth" src="http://www.mycosmooth.com" frameborder="0" scrolling="no" id="iframe" onload='javascript:resizeIframe(this);' />
    Below is the result:
    The purpose is to have an independent website run the blogging capabilities, since muse doesn't directly support blogging as of yet.
    Since the site is on a different domain, I am running into cross domain issues and it won't get the height of the page. The methods that apparently work use php and I am unsure how that would work in muse, if at all.

  • Fit Content Proportionally Broken in CS6?

    I have been having a lot of issue with Fit Content Proportionally since upgrading to CS6.
    In many of my documents (some new, some pulled in from earlier versions and saved over as CS6), I find that both via the menu and via the keyboard shortcut, the commonly-used and absolutely essential "Fit Content Proportionally" command just simply does not work.
    I can create a bunch of square frames, and then fill them all with various-sized and shaped images, and then when I would usually Fit Content Proportionally to make them all scale down inside the boxes, what I get instead is no response at all. The only way to "fix" the problem is to go to the toolbar with the content selected and change either the vertical or horizontal percentage to any number at all. As long as the proportion lock is in place, then that changes both % numbers to the same number, and thus fixing the problem. This is what makes me think it is a bug.
    Is there some new fitting setting in CS6 that I need to change?
    I have tried saving as IDML and importing back into CS6, but the behavior persists. Interestingly, if I change the fitting via the toolbar % "fix" and then select Fit Content to Frame (not proportionally), then Fit Content Proportionally is broken again, and does nothing at all.
    On most of my documents, Fit Content Proportionally works exactly as expected, and exactly as it always has. Of course my biggest "problem" documents contain large numbers of images.
    High Res Image:
    http://i.imgur.com/kl9jS.jpg

    This is a bug or a big enough change in behavior that it should come with a warning alert the first time you use it. I've replicated it across different 8.0.1 installs and (Mac) OSs.
    To replicate:
    Place graphic. I haven't seen a difference among placed graphic types.
    Resize the graphic frame non-proportionally.
    Object=>Fitting=>Fit Content to Frame, so that the content is scaled non-proportionally. (Or select the content and scale it non-proportionally.)
    Object=>Fitting=>Fit Content Proportionally. Nothing happens. (Or, if you scaled the content without fitting it in the previous step, the content may be centered, and it may be scaled, but the proportions won't be changed.)
    I suppose you could make an argument that this is more correct than the old behavior—the command now means "Fit without changing the proportions"—but it's a big change, and I doubt anybody wants it to work this way.
    Here's a short script that should more or less give the old behavior:
    function fit(item) {
      var i, l, graphic;
      if (item instanceof Group) {
        for (i = 0, l = item.pageItems.length; i < l; i++) {
          fit(item.pageItems[i].getElements()[0]);
      else if (item.hasOwnProperty("imageTypeName")) {
        item.horizontalScale = item.horizontalScale < 0 ? -100 : 100;
        item.verticalScale = item.verticalScale < 0 ? -100 : 100;
        item.fit(FitOptions.PROPORTIONALLY);
      else if (item.hasOwnProperty("graphics")) {
        for (i = 0, l = item.graphics.length; i < l; i++) {
          graphic = item.graphics[i];
          graphic.horizontalScale = graphic.horizontalScale < 0 ? -100 : 100;
          graphic.verticalScale = graphic.verticalScale < 0 ? -100 : 100;
          graphic.fit(FitOptions.PROPORTIONALLY);
    function main() {
      var i, l;
      if (!app.documents.length) {
        return;
      for (i = 0, l = app.selection.length; i < l; i++) {
        fit(app.selection[i]);
    app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Really Fit Content Proportionally");
    There are  certainly some corner cases I've left out. Let me know if you try to use it and it doesn't work right.
    Jeff

Maybe you are looking for

  • Share buttons on Blogspot are not showing up.

    This is my blog address: http://realityhideseek.blogspot.com/ I have www.addtoany.com share buttons under each post that show up in Chrome, but not in Firefox. I've read several help articles, but none seem to do any good. This is only since the upgr

  • Two Questions - Fairly Easy Answers

    First off - what applications are available for enhancing desktop browsing (IE changing desktop format - such as having item icons stay at the top are of the desktop, having widgets work constantly OUTSIDE of the widget application) And also, I notic

  • Opening iPhoto Event in Thumbnail view - not full screen

    When I view all my 'Events' in iPhoto I see them as thumbnails. It used to be that when I then double-clicked on a particular Event I then saw the contents as thumbnails as well. Now when I open a particular Event it goes straight to a randomly selec

  • Unable to sort songs on iPad or iPod in iTunes

    I used to be able to sort songs on my iPod using the column browser in iTunes; I recently got an iPad and noticed that the column browser option was greyed out. I puzzled over this for a bit but didn't mind since I don't listen to music from the iPad

  • Group owners can't manage own membership

    I want to let group owners manage thier own membership (add and delete users from thier group only). Being assigned as "group owner" doesn't provide any mechanism that I could find to do this. However, assigning the group's "Privilege Assignments, Al