Automatically resize the height

Hi!
I am trying to bild an application where I have a list of
items aligned vertically (Like a 1-column TileList or List).
The problem is: I am using 2 states in my custom ItemRenderer
to expand the information, whcih also expands the height.
But when I do that with a TileList or List the height of the
row is not expanded correspondingly. Thats why right now I am using
a mx:Grid or a mx:Panel. Here it is no problem, the following items
simply get moved down or up when I open or close items.
But I have 2 problems now: How can I get alternating
background colors? How can I select one item completly like in a
TileList, List or Datagrid.
I also played with the datagrid but here it is the same. The
row height does not adopt dynamically to the chaning content. How
can I achieve that?
Or would an mx:Tree be the better solution? How can I use
custom itemrenderers with trees? I only need 2 levels (1: TITEL,
2:CUSTOM RENDERER).

Hi.
I found out something: There is no "real" limitation. But if
the content has not set any height it is set to something around
250px.
I also ussed your code for testing and simply increased the
number of items in the list so that it can not fit in any more (
http://weblogs.macromedia.com/pent/archives/2006/04/a_list_itemrend.cfm).
There I have the same behaviour.
But if I set the height of the List containing the car models
manually, e.g. to 400 the main List row has the right size.
So all I need now is to know how I can set the height of the
list containing yoru car models to the "perfect" height to match
ALL the content. Then the main row should adapt correctly...

Similar Messages

  • Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?

    Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?
    I use the Tools > Annotate > Add Text feature, and when I click away after adding text, it automatically changes the text box size such that the last letter -- or last word -- gets bumped off into an invisible line below it, forcing me to manually adjust every single text box. It is highly annoying when trying to complete PDF forms (e.g. job applications).
    It appears to be a glitch, quite honestly, an error resulting from Apple's product design. Has it been fixed in the new operating system (for which they want $30)?
    I would very much appreciate any help you can provide! Thank you for your time.

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Financial Reporting 9.3.1 automatically change the height of the row

    How can I make the reports generator automatically change the height of the row if the text does not fit into the cell? I tried different PDF generators (AFPL Ghostscript 8.51, Adobe Acrobat Distiller 6.0) but result was the same: http://sql.ru/forum/actualfile.aspx?id=6396177

    Hi,
    In HFR if you are not allowing expansion on the row or column, it wont expand itself according text length.
    So you need to anticipate the row hight and width according to your need. You can define this in the property sheet.
    Thanks,
    aly

  • PSE how to have photo automatically resize the a 12 X 12 background document

    I was told that when you drag a photo onto a 12x12 document it will automatically resize to the 12 x 12. When I do it in PSE the photo is small...and asking me to transform it. Is this different within these two programs or is there a work around in PSE. I had a friend try it in her photoshop program and the image wasn't distorted at all...Didn't appear huge, like if I transform it.

    Both are set at 300....it's a very small picture... 4x3 my online friend uses CS5 and said it automatically changed it to the 12x12 blank document when she dragged it on...I did that but it gets very large and blurry...I studied about smart objects and used place to open photo and then tried to resize it....she clipped a mask watercolor underneath to give it emphasis... she then tilted the whole picture.she's out of town for the moment...I was trying to figure out what she did...for the life of me I can't get mine to resize to the 12 x 12....it expands larger than hers when I try.
    Date: Sun, 25 Mar 2012 11:18:13 -0600
    From: [email protected]
    To: [email protected]
    Subject: PSE how to have photo automatically resize the a 12 X 12 background document
        Re: PSE how to have photo automatically resize the a 12 X 12 background document
        created by photodrawken in Photoshop Elements - View the full discussion
    When an image is added to a document, the incoming image is scaled to the resolution of the target document.  Make sure the resolution is the same for both, or simply use the Move tool on the pasted image to resize it to suit.  The incoming photo is never resized automatically to the target document's dimension. Ken
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4290232#4290232
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4290232#4290232. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to I stop safari from automatically resizing the bookmark bar when I click on the search bar?

    there is probably an eloquent way to ask this but I don't even know what the feature is called.
    Here is what it's doing:
    I'm using safari in landscape mode on my iPad.
    I click on the search bar and then the bookmarks come up below.
    It takes a second to automatically resize to a size that make no sense, usually cutting off bookmark titles...and the delay of it resizes drives me nuts.
    Safari did not used to do this until I guess ios 8. Any ideas how to stop this annoying "feature"??

    Try deleting the Cache.db...
    Quit Safari.
    Go to ~/Library/Caches/com.apple.Safari/Cache.db
    Move the Cache.db file from the com.apple.Safari folder to the Trash.
    Relaunch Safari ...
    You may want to try the Safari Reading List as an alternative to tabs.
    Click the eyeglass icon just to the left of the Bookmarks icon top left side of the Safari window.
    Drag the url to the window or click Add Page

  • How can I get Illustrator to automatically resize the font to a designated page width?

    I want to be able to type lines of text and have Illustrator automatically change the font size so that it fits that width of the page exactly, even if on one line there are 8 words and on another line there are 2 words - I want the big and small letters effect. I was previously doing this in Photoshop manually but someone suggested I could do it easier in Illustrator so here I am....
    Thanks.
    Jay

    each line has to be a separate text object (point text, not area text)
    use this version, as SRiegel pointed out, the script was missing a line
    #target Illustrator
    //  script.name = textBlock_CS4.jsx; // not tested on CS5 yet.
    //  script.description = converts selected point textFrames into a Block of Text;
    //  script.required = one document with at least two selected text frames;
    //  script.parent = carlos canto // 12/4/11;
    //  script.elegant = false;
    if (app.documents.length > 0)
            var idoc = app.activeDocument;
            var sel = idoc.selection;
      if (sel.length>1)
      var width = prompt ("Enter desired Text Block width in Points", 300, "Text Block"); //
      if (width!=null) // quit if pressed Cancel
      var dupLayer = idoc.layers.add(); // add a layer to place the new block of text
      dupLayer.name = "Text Block";
      var blockGrp = dupLayer.groupItems.add(); // add a group to final output
      blockGrp.name = "Text Block";
      var left = idoc.width/3; // place block at the bottom 3rd of the page
      var top = idoc.height/3
      var spacingMM = prompt ("Enter spacing in Millimeters", 2, "Text Block"); // text lines spacing in mm
      var spacingPts = new UnitValue(spacingMM,"mm").as ("pt") // convert to points
      for (i=0; i<sel.length; i++) // loop thru selection
      if (sel[i].typename == "TextFrame") { // continue if textFrame, ignore other pageItems
      var itext = sel[i].duplicate(blockGrp, ElementPlacement.PLACEATEND); // duplicate text
      itext.selected = false; // deselect it
      grpName = itext.contents; // get contents to name outline group
      var ioutlined = itext.createOutline(); // create outlines
      ioutlined.name = grpName; // rename group
      var perCent = width/ioutlined.width*100; // get scaling percentage, based on desired width of block
      var scaleMatrix = app.getScaleMatrix(perCent, perCent);
      ioutlined.transform (scaleMatrix); // scale outlined text
      ioutlined.left = left; // position text
      ioutlined.top = top+ioutlined.height+spacingPts; // top = previous item top + spacing + current item
      top = ioutlined.top // get current top to use on next item
      } // end if - non text frames
      } // end for loop - selection
      } // end check prompt for calcel
      } // end if selection > 1
      else
      alert ("Select at least 2 textFrames before running");
        } // end at least one document
    else
            alert ("There are no open documents");

  • Automatically resizing the tray with respect to iView Size

    Hi,
    I want width of the tray should be automatically resized same as the width of the iView in page layout of the SAP EP.
    I have tried to set the same using "Width of the External Window" property of the iView from content administrator but it doesn't work.
    Any help??
    Thanks,
    Prashant

    hi
    Prashanth,
    you can set the size of the iView trays from the theme editor
    goto sys admin,
    portal display.
    theme editor
    select your theme
    under Complex elements
    iView trays
    but her too you can make it automatic or dynamic(changing the size according to the iViews).
    but can set the size of the trays...
    thas is it.
    Cheers.......

  • Resizing the height on tables

    I have created a table on my page, I have not put anything in my table, however I am not able to resize my table, what could be the problem?  I have gone to the properties and tried to manually put in the height, and width, and I also changed the height and width in code view, but it doesn't change the size of the table.
    I also changed the font to be ex-small, however the table size does not change.  Can anyone help me.

    I am trying to resize table that has the verbiage Plan Complaints Training.  I click on the table and the arrows show up as though I can adjust the height and the width, but the size of the table does not move.
    I usually insert the table above the table labeled bottom.  I click on insert/table, to insert a table.
    The header that I was referring to, is the blue background image at the top of the page that has CMS in the right hand corner.  That is the file name that one of the developers gave this file.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Essential Job Training</title>
    <link href="ejt_style.css" rel="stylesheet" type="text/css" media="screen">
    <script language="javascript">
    function createWindow(cUrl,cName,cFeatures) {
    var xWin = window.open(cUrl,cName,cFeatures)
    </script>
    </head>
    <body>
    <table border="0" align="center" id="container">
        <tr>
            <td valign="top" id="tabtop"><div class="title"><strong>Plan Complaints Training</strong></div>
          <div class="subtitle">Verifying Current Plan Information</div></td>
        </tr>
        <tr>
            <td height="447" valign="top" id="middle">
        <p>On the <em>MA-PDP </em>view, scroll down and type the PBP number, contract number,  plan name, and LIS information (if applicable), into the dashboard. You will use  this information when completing the PDP Referral form.</p>
        <p> </p>
        <div align="center"><img src="images/Contract Information.jpg" width="470" height="242"></div>
    <table width="650" border="0" align="center">
          <tr>
            <td width="76"><div align="center"><img src="img/ex_small.jpg" alt="exclamation point" width="72" height="73"></div></td>
            <td class="important">You must find the  contract information  before accessing the <em>Plan Complaints </em> script and PDP Referral form. You will not be able to toggle back  and forth once you start the complaint process.</td>
      </tr>
        </table>   </td>
      </tr>
        <tr>
            <td align="right" valign="middle"><table width="680" border="0" cellpadding="0" id="buttons">
                    <tr>
                        <td width="150" align="left" valign="bottom" id="pgnum">Page 23</td>
                        <td align="right"><a href="20.html"><img src="img/back.gif" alt="Back" width="47" height="48" border="0"></a><a href="22a.html"><img src="img/next.gif" alt="Next" width="48" height="48" border="0"></a><a href="index.html"><img src="img/home.gif" alt="Home" width="32" height="34" border="0"></a><img src="img/site_map.gif" alt="EJT Site Map" width="32" height="34" border="0"><a href="javascript:createWindow('popup_help.html','window2','width=800,height=600,status,location,resizable')"><img src="img/help.gif" alt="Help" width="31" height="34" border="0"></a>
                      <input type="image" src="img/exit.gif" onClick="self.close()"></td>
              </tr>
                </table></td>
        </tr>
    </table>
    </body>
    </html>

  • Resize the height of a row in a JTable?????????

    hi there
    how can i custmize the height of rows in a table? thank you.

    Hi yes u have to set the contents seperately.
    try like this it is working for me.
    class MyCellRenderer extends DefaultTableCellRenderer
    public Component getTableCellRendererComponent(JTable table,
    Object value, boolean isSelected, boolean hasFocus, int row,
    int column)
    Component comp = super.getTableCellRendererComponent(table, value, false,false, row, column);
    // System.out.println("row "+row+" col "+ column);
    if(row==some row)
    setFont(XXXX);
    return comp;
    }

  • Is there a way to automatically resize the text box to fit the text inside, without using the selection tool to resize the corners in Illustrator and Photoshop?

    I'm wondering if there is a way where I can quickly resize a text box to fit exactly around the text inside, so pretty much the smallest the text box can go without being too small to fit the text? I know you can do this manually with the selection tool, but is there a button/command that automatically does this in one go?
    Thanks

    Try this script. Save the page as .jsx the the "Presets>Scripts" AI folder. When you restart AI it will appear in the "Scripts" menu. Select the text block and run the script.
    Thanks to Nathaniel Vaughn KELSO for the script.
    http://kelsocartography.com/scripts/scripts/nvkelso/FitToTextContent_v2.jsx

  • Is there a way to automatically resize the text box to fit the text inside, without using the selection tool to resize the corners in Illustrator?

    I'm wondering if there is a way where I can quickly resize a text box to fit exactly around the text inside, so pretty much the smallest the text box can go without being too small to fit the text? I know you can do this manually with the selection tool, but is there a button/command that automatically does this in one go?
    Thanks

    The short answer is No. But I see that Ray has given you an option.

  • Is there anyway to stop PS Touch automatically resizing the file/image when saving to Gallery

    I bought the Note primarily for the PS touch feature as a way of editting my photos on the move and not being tied to my PC at home. Now i load up my images from the MicroSD card and edit away but when i save them i only have the option of saving to Gallery and not the memory card (not a major problem itself). However they are automatically reduced in both file size but also image size, which is fine for small prints but i like having the option of printing larger so would prefer to keep the large file size if possible.
    On a similar note is it possible to save direct back to the memory card overwritting the original or is it always going to go to the gallery?

    The only thing you can to it to set the  import size to the max value within the PS Touch Settings-> Image Import
    When your image is even larger than the MAX value, PS Touch downscales the image.
    Hope that answers your question.
    Guido

  • Is there a way to automatically size the facet Top of a pan stretch layout?

    I have the following structure
                <af:panelStretchLayout id="psl1" topHeight="215px" partialTrigger="pbox" >
                        <f:facet name="top">
                               <af:panelBox id="pbox"As you can see the topHeight property of the top facet of the panelStretchlayout is fixed.
    The value can exactly contain the panelBox contained when it is disclosed. When the user undiscloses the panelbox, I want to automatically resize the top facet height to exactly contain the undisclosed panel box.
    Is there anyway to do this via expression language on pre-defined propertries of the components?
    If possible I would like to avoid to create a bean which gets the height programmatically from the panelBox.

    Yes just use "*auto*" like this:
    <af:panelStretchLayout id="psl1" topHeight="auto" partialTrigger="pbox" >
    <f:facet name="top">
    <af:panelBox id="pbox">
    just this will take care of it.... though u will get warning yellow line but is perfectly fine.... i would rather say, jdev should nt show that line instead.
    cheers

  • The height of mx:RichTextEditor in VDividedBox cannot be reduced to less than 200.

    I'm using <mx:VDividedBox >, in which there are a mx:RichTextEditor and mx:Image, as in the code below.
    When I dragged the divider of the VDividedBox to resize the heights of the Image and RichTextEditor, I found that the height of the
    RichTextEditor cannot be reduced to less than 200. Is this a bug?
    I replaced RichTextEditor with TextArea, then divider of VDividedBox works fine. I use Flash Builder 4.5. Please try the following code, and
    post you result here. Let's help Adobe to make Flex better.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Script><![CDATA[
      import mx.controls.Alert;
      [Bindable] public var imageSrc:String = "http://cseligman.com/text/sky/perigeeapogee.jpg";
      private function showHeight():void {
       Alert.show(this.rte.height.toString());
    ]]></fx:Script>
      <mx:VDividedBox width="100%" height="100%" >
       <mx:Image id="image_edit" source="{this.imageSrc}" scaleContent="true"
           horizontalAlign="center" verticalAlign="bottom" width="100%" height="100%"
           />
       <mx:RichTextEditor id="rte"
           width="100%"
           text="The Moon.... Click me to show my height." click="showHeight()"/>
      </mx:VDividedBox>
    </s:Application>

    try setting minHeight of the RTE to 0

  • How to resize the menu,address and bookmark toolbars. Not the font but the toolbar sizes

    I'm trying to reduce the overall space of the top of the firefox page.
    I have the menu and the the bookmarks tool bars checked and between those 2 and the address and site header it takes up way to much real estate.
    My font size is good but the wasted area is way to much and I can't seem to find the simple answer to looking for addons and themes to just resize the height of the space.
    This is the new 33.1 and up to this point all custom has been a breeze.
    Thanks much.

    Hello,
    Have you considered running Firefox in [[How to make Firefox and websites go full screen|Full Screen mode]]? There is also an extension that hides the toolbars until you hover your mouse over the top of the screen:
    * https://addons.mozilla.org/en-US/firefox/addon/fullscreen-toolbar-hover/
    You can change the size of your toolbars by using the userChrome.css file, or by installing [https://addons.mozilla.org/en-US/firefox/addon/stylish/ Stylish] and using one of these styles:
    * https://userstyles.org/styles/9349/navigation-location-bar-minimal-height
    * https://userstyles.org/styles/9350/menu-and-searchbar-minimal-height-dm
    * You can edit the code of the style to suit your needs better. I don't know how it will affect the current interface, so if you find that Firefox becomes unusable after using this style, load Firefox in [[Troubleshoot Firefox issues using Safe Mode|Safe Mode]] and uninstall Stylish to remove it
    ** Alternatively, if the address bar still works, type in '''about:addons''' in your address bar, and go to the User Styles tab, then disable/remove the style
    For more information on userChrome.css:
    * http://kb.mozillazine.org/index.php?title=UserChrome.css

Maybe you are looking for