Dynamic height of mx:Text in List ItemRenderer

Hello,
I want to have a list with line breaks if the width of the
items is higher then the width of the list.
I wrote my custon ItemRender but if i set the no height to
the mx:Text there would be only first line tdisplayed on the list
My List looks like this
<mx:List id="level1" dataProvider="{level1List}"
width="100%" height="100%"
change="selectLevel1ItemEvent(event)">
<mx:itemRenderer>
<mx:Component>
<mx:VBox height="100%">
<mx:Text width="100%" height="40" text="{data.desc}"/>
</mx:VBox>
</mx:Component>
</mx:itemRenderer>
</mx:List>
The problem is that know all items have a height to fit an
item with two lines. I want only have this if the width of an item
is higher than the width of the list.
Thanks,
Stefan

try setting minHeight of the RTE to 0

Similar Messages

  • Dynamic Height in Graphs does not work properly when the graph is in an list

    Help please,
    I have an report in SQL Server 2008 (SP1) Reporting Services which uses Dynamic Height to dynamically increase the size of the graph for the data. For a single dataset this works great!
    When I place this graph in a list/tablix (to display this graph on each group) things go bad... Only the first graph on every page is resized, all other graphs on the same page are equal in size of the first!
    When I place a pagebreak on the lists property all graphs are drawn fine!! But then I will have a page for every question in my data (which can be a lot!)
    What is going on here? Please help.

    Hi Jerry,
    thanks for your reply, but this does not work. The graphs are now all the same size (the size of the first one that is), and on the same page for that matter...
    It looks like the renderer calculates the value of the dynamic height only once on a page in stead of each graph. That's a bug in my opinion.
    Any suggestions on how to fix this?
    The inner workings of the report are like this: The data contains anwers from a survey by question, so i have a unknown count of answers with each question; I placed a list on my report with a groupingproperty on the question asked. On this list i place a horizontal bar-graph which must grow in height when it is too small. The dynamic height should be calculated like this =70 + (CountDistinct(AnswerValue.Value)*10) & "pt".
    When i place this calculation in a textbox, every item in the group is calculated correctly. Each graph is drawn, but the graphs are sized only to the size of the first graph on the page. When I place a pagebreak after each list-repeat (so i get each question on a seperate page) each graph is drawn correctly! This results however in more than 100 pages with all used for just a few centimeters (think about trees!).
    I'm using SQL 2008 / SSRS2008 with SP1 by the way ( without SP1, the behaviour is the same).
    Any more suggestions are appreciated.
    Danny

  • Create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box

    HELP!!! Can anyone please provide some guidance on how to create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box.
    I have a form which – based on the department that's selected from a drop-down box – will have different form fields/text boxes, etc, made available.
    Is this possible in LiveCycle, if so, can you please provide the script/info - as needed.
    Thanks,

    In the preOpen event of the second dropdown list you put something like (in formCalc):
    if (dropdown1 == 1) then
    $.clearItems()
    $.setItems("Year, 2 Year,  3 Year")
    elseif (dropdown1 == 2) then
    $.clearItems()
    $.setItems("3 Year,  4 Year")
    endif

  • CreateTextfield with dynamic height?

    Is it possible to use createTextfield with a fixed width, but
    without defining height, so that it will size according to the
    amount of text loaded into it from XML? I would like to do this so
    that I can get the _height property at runtime to use for custom
    scrolling of the text field. Thank you in advance!

    So, if I can't have dynamic height, (assuming no reply
    probably means "no" ;) ) I decided I would at least make it so the
    height can be defined from the XML file. I added an "h"= 300;
    attiribute to the node that contains the text in the XML file.
    Everything loads properly and traces just fine, but when I try to
    create the text field, nothing is there. I must have some wrong
    syntax or something,or perhaps I have to define a font differently.
    My font is in the library and linkage is set for exporting for
    actionscript. Could someone be so kind as to take a look and see if
    anything is obviously wrong? Thanks!

  • Dynamically create and remove TEXT items in forms

    Hi Guys,
    Is there a way to dynamically create and remove TEXT items in form. For example I have the EMP and DEPT table and when
    I select the EMP table name from the LOV, rows of the EMP table with column name and data should get displayed on the screen and likewise a similar action for DEPT table and
    so on. I have about 90 tables from where data could be required to view and edit. They all have varying number of columns.
    Any suggestions ?
    Thanks
    KMD
    null

    Use OLE concept of developer and map Excel as an object
    Nadeem
    null

  • Who to get the height of the text in a Text Layout?

    Hey, I'm using the text layout component offered by adobe labs. I read the documentation and now capable of doing almost all what I need. I just have a small problem. Lets say I have a text layout object on my stage containing some text. How can I know the height of the text or the number of lines in it ???
    I found their is a porperty: "contentHeight"  and a method "calculateHeight()" but they are in another class of the libraries that comes with the text layout component. I don't know how to reach them. Please help and write me the lines of code that do this job.
    Thanks

    Well I was going to suggest that you post in the TLF forums, http://forums.adobe.com/community/labs/textlayout.
    But you seem to have found those. So instead I will suggest that you don't cross-post.
    Really if anybody could answer that it would be the folks there. I know there isn't a lot of traffic in those forums, but that is because the TLF is really insanely complicated and it is still beta. But it looks like most questions there do get some kind of answer....

  • Dynamic height in a table with scrollable content

    Hello,
    i have in a web dynpro a table. The table is scrollable. At present i have a fixed height. Is it possible that i have a dynamic height, so that the table for example has a height of 70 percents from the page.
    I try that but it doesn't work. Have any one a solution or is it not the supported in web dynpro's?
    best regards
    Markus Jura

    Markus,
    There is no way to define height of table in percents of parent container. You may only manipulate number of visible rows. For example, bind corresponding IWDTable property to context attribute of type int and change value of this attribute dynamically (in wdDoInit and/or action handlers code)
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Report Formatting with Dynamic Height Header/Footer

    I need to generate a printable report (pdf if possible) with a:
    1) Header - Dynamic Height based on recordset output
    2) Body - Recordset output, may carry over to multiple pages
    3) Footer - Dynamic Height based on recordset out
    In short, the whole page is dynamic- The header and footer need to be on every page and whatever height is left over to fit within the print area goes to the body and the line item output of each record (think invoice).  Then the number of pages will depend on how long it takes to output the body recordset (but the header and footer MUST be on each page).
    I have been trying to get this to work using cfdocument since CF7 and have never had any luck. It has not worked due to the reason that since the header and footer are dynamic height, I do not have any way to set the margins properly on page generation (so it shrinks the header or leaves excess whitespace).
    Anyone recommend the best way to go about this? I have heard about the report builder and am not sure if that will fit these requirements.  I appreciate any assistance!

    When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
    Hope that helps
    Paul

  • Extending a component which already extends a spark list ItemRenderer

    Hello everyone,
    I have the following situation: Im displaying lists of very similar data objects (they extend the same parent) so in order to avoid a lot of changes to many itemrenderers (if i need to change something in the common properties) when displaying this data, i defined a spark list ItemRenderer (in MXML) which displays the common properties (file called BaseRenderer.mxml):
    <s:ItemRenderer>
         //in the script section i override the set data property
         //some MXML labels, checkboxes, etc
    </s:ItemRenderer>
    Then i created a specific itemrenderer which extended it (file SpecificRenderer.mxml):
    <model:BaseRenderer>
         //again i override the set data property
         //some ADITIONAL MXML labels, checkboxes, etc
    </model:BaseRenderer>
    When i run the app, and when the specific renderer is used, it works (no errors are thrown) , but it only shows the content of specific renderer, nothing from base renderer is visible. Is this the right way to do this, or do i have to override some additional stuff in my specific renderers?
    Thank you.
    One more thing, i just noticed, if i remove all MXML tags from specific renderer, the content from base renderer becomes visible, seems as if specific content overrides base content. Is there a way to add mxml tags into the specificrenderer?

    Yes i suspected them to be merged, and you gave me a great idea. As you say this behavior is true across all mxml defined components, not just itemrenderers. I want to avoid actionscript renderers because i dont (and wont) have any performance issues anyway and i like flexibility in design view, so instead i found another solution which i slightly modified. Some spark components inherit property mxmlContent, which you can override. This is what i came up with in the end: I added the property override into specific renderer and everything is shown as expected (because base elements are merged with the ones from extended component).
    override public function set mxmlContent(value:Array):void {
                                            var adding:Boolean = true;
                                            var index:int = 0;
                                            while (adding) {
        var element:IVisualElement = null;
        try {          element = super.getElementAt(index); } catch(e:Error) {          }
        if ( element != null )  {
           value.push(element);
           index += 1;
        else
          adding = false;
                                            value.reverse();
                                            super.mxmlContent = value;

  • How to increase the height of the text field in Adobe Central

    How do I increase the height of the text field in Adobe Central?  I know how to change the font size but visually the height of the text field (<0.5cm) looks too small.
    I want to be able to print the form and fill it out by hand. But the text field height is too small.
    Please help.
    Thanks
    Gen

    Hi;
    Are you saving your form as a PDF from FormsCentral to distribute the PDF form? 
    In the FormsCentral form authoring tools you do not have control over the size of the field.  If you are using a PDF however you can edit that PDF in Acrobat after saving from FormsCentral and can edit the size, border, color etc of the fields. 
    If you want to edit a FormsCentral PDF you'll want to review this FAQ:
    http://forums.adobe.com/docs/DOC-3661
    Thanks,
    Josh

  • Check class name of List ItemRenderer

    Hello,
    I am setting the itemRenderer of a Spark Mobile List like so:
    var ir:ClassFactory=new ClassFactory(MyItemRenderer);
    ir.properties={etc. etc.};
    list.itemRenderer=ir;
    How can I check if the list's itemRenderer is MyItemRenderer or at least a class name string comparison?
    Thank you.

    Custom itemRenderer:
    public class MyItemRenderer extends LabelItemRenderer {...}
    View:
    var ir:ClassFactory=new ClassFactory(MyItemRenderer);
    ir.properties={etc. etc.};
    list.itemRenderer=ir;
    trace(ClassFactory(list.itemRenderer).generator);
    That outputs: [Class LabelItemRenderer].

  • Problem with "Input text with List of Value"

    Hi,
    I have a table where i am storing country code using "Input text with List of Value". I want a another non base table item where i would like to show the "Country Name" of the select LOV. Kindly let know a way to implement the LOV where it returns the "Country code" to base table item and "Country name" to the non base table item.
    thanks
    Sanjay

    Hi,
    I am getting lazy in chasing down the JDeveloper release by the ADF Faces component mentioned.. So I ask: Which verson of JDeveloper are you on ?
    Frank

  • Calc height for the text - Java (CS4)

    Hello,
    sorry for my bad english but i'll try :-)
    I have a Java application that create a IDML file using CS4 SDK.
    the IDML file created by aplication is opening whit InDesign whith out problems.
    I need to calculate the height for the text, now I'm entering a fixed value.
    How can I calculate? thanks for the answers.
    Vanessa.

    You can check and select which toolbar to see:
    *Firefox > Options
    *"View > Toolbars" (press F10 to display a hidden menu bar)
    Open the Customize window to possibly move some items from one toolbar to another.
    *Firefox > Options > Toolbar Layout
    *View > Toolbars > Customize
    *https://support.mozilla.org/kb/How+to+customize+the+toolbar

  • IPhone 4 - Text distribution lists?

    Hi all
    First post on here, and apologies if this has already been discussed but can't find it anywhere. Any idea if the iPhone 4 enables users to create text distribution lists? I've seen the comments regarding how to get around the problem for the 3GS, but not seen this mentioned for the iPhone 4, and if I'm honest this is a big thing for me getting a phone. I'm a sports coach with various teams and age groups all needing information and hope Apple have finally added this option as has been on several models of the BB for some time. I'm after a change though
    All the best
    Ricky

    Thanks for the prompt response. Would imagine it's a relatively easy thing to integrate considering the 'FaceTime' and retina display they have included, so it's a shame if they haven't added it

  • Handle  text  using list box in dialog program

    hi,
      I am  working  on  dialog program  , Created  two fileds , one is list  box type  I/O field and another is  i/O  field  which displays  text  based  on  value  selected in list box.
    Please  provide  any  inf  how  to Handle  text  using list box value in dialog program.
    thanks

    Hi,
    <li>Check the screen to know how to set I/O field to set as listbox.[ dropdown box picture|http://2.bp.blogspot.com/_O5f8iAlgdNQ/Sm7RBrqfjcI/AAAAAAAAFaU/RateViiVqrU/s1600-h/drop_down-754481.JPG]
    <li>in the above screen we need to set FctCode  for the dropdown box field so that when you select value from the dropdown box PAI event is triggered.
    <li>screen flow logic like below
    PROCESS BEFORE OUTPUT.
    MODULE values_into_dropdown.
    FIELD g_bukrs.
    FIELD g_text.
    PROCESS AFTER INPUT.
    FIELD g_bukrs.
    FIELD g_text MODULE get_bukrs_txt.
    <li>Logic to fill Dropdown field with values.
      PROGRAM  sapmztest_dropdown.
    DATA: g_bukrs TYPE t001-bukrs.
    *&      Module  VALUES_INTO_DROPDOWN  OUTPUT
    MODULE values_into_dropdown OUTPUT.
    TYPE-POOLS:vrm.
    DATA:
           field     TYPE  vrm_id,
           it_values TYPE  vrm_values,
           wa_values LIKE LINE OF it_values.
    DATA: t001 TYPE t001 OCCURS 0 WITH HEADER LINE.
    IF it_values[] Is INITIAL.
       SELECT * FROM t001 INTO TABLE t001 UP TO 10 ROWS.
       LOOP AT t001.
         wa_values-key  = t001-bukrs.
         wa_values-text = t001-butxt.
         APPEND wa_values TO it_values.
         CLEAR  wa_values.
       ENDLOOP.
    ENDIF.
    field = 'G_BUKRS'.
    CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
         ID     = FIELD
         values = it_values.
    ENDMODULE.                 " VALUES_INTO_DROPDOWN  OUTPUT
    *&      Module  get_bukrs_txt  INPUT
    MODULE get_bukrs_txt INPUT.
    read table it_t100 into wa_t100 with key bukrs = g_bukrs.
    g_text = t001-butxt.
    ENDMODULE.                 " VALUES_INTO_DROPDOWN  INPUT
    I hope that it helps you.
    Thanks
    Venkat.O

Maybe you are looking for