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;

Similar Messages

  • Need to set height to 100%

    I need to set a web page to be 100 width and 100% height.
    I've got the width ok, as it's easy, but the height just won't
    work.
    I've set a css style to 100% height, but in safari and
    firefox, it's only 20% or so of the open window. I have a 3x3 table
    with set heights on the top 2 and bottom 2 and I need the middle
    left (which has a background colour) to fill the depth of the page
    with the bottom 2 columns right at the bottom - I just can't see
    hotw to do this.
    CS3, mac osx 10.4.9
    thanks

    http://www.apptools.com/examples/tableheight.php
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "livingwithanangel" <[email protected]>
    wrote in message
    news:f0bejo$lkm$[email protected]..
    >I need to set a web page to be 100 width and 100% height.
    I've got the
    >width
    > ok, as it's easy, but the height just won't work.
    > I've set a css style to 100% height, but in safari and
    firefox, it's only
    > 20%
    > or so of the open window. I have a 3x3 table with set
    heights on the top 2
    > and
    > bottom 2 and I need the middle left (which has a
    background colour) to
    > fill the
    > depth of the page with the bottom 2 columns right at the
    bottom - I just
    > can't
    > see hotw to do this.
    >
    > CS3, mac osx 10.4.9
    > thanks
    >

  • How do you set iFrame height to 100%

    We have seen code in OAF for iFrame's where the width is set to 100% but the height is set at 500 (a given value). We've found that if we change the height to 100% it does not seem to work... However, if we change the height to 2500, insteach of 500, the iFrame box is certainly much bigger. Please review the code below. Can anyone advise how we can get the iFrame height to 100%?
    OAHTMLWebBean localOAHTMLWebBean = (OAHTMLWebBean)createWebBean(paramOAPageContext, "HTML_WEB", null, "IFRAME");
    localOAHTMLWebBean.setHTMLAttributeValue("src", str14);
    localOAHTMLWebBean.setHTMLAttributeValue("width", "100%");
    localOAHTMLWebBean.setHTMLAttributeValue("height", "500");
    paramOAPageContext.getPageLayoutBean().addIndexedChild(localOAHTMLWebBean);

    Hi,
    I am not sure in OAF directly you can set % of width to the HTML element.
    But can you try something like set width in % for some of the other bean and run the page,
    once it opens in the browser get the html source of the page and check how that bean's width % is set.
    You can try the same way.
    Thanks,
    With regards,
    Kali.
    OSSi.

  • Dynamically set flash chart height?

    Hi,
    I have a flash chart that includes a selector that alters the query for the chart. Depending on what the user selects, the chart shows a different number of rows (this happens to be a stacked horizontal bar chart, but this could apply to any chart type). I would like to be able to dynamically set the chart height based on the number of rows the query returns. If I set it too small and the user makes a choice that returns a larger number of rows, the chart bars are compressed to the point where the labels are unreadable or omitted altogether. Conversely, if I set the height to a larger value and the user makes a selection that results in a small number of rows, the chart is overly extended and hard to read.
    I am able to calculate what I'd like the chart height to be using a page item and a before header process. But I can't figure out how to pass this value to AnyChart. I tried using an item substitution (e.g., &P7_CHART_HEIGHT.) as the value for the chart height on the Chart Attributes/Chart Settings page, but this attribute requires a non-zero numeric value. I tried to figure out if I could alter the chart XML, but could not figure out how to do it and I'm not sure item substitutions would be passed in the XML anyway.
    Is there a way to dynamically set the height attribute of a chart at page load time?
    Thanks,
    Mike

    Hi Mike,
    You can update the Region Source of your chart, replacing the substitution strings *#HEIGHT#* with the reference to your page item *&P7_CHART_HEIGHT.*. So your chart region source should then look something like the following(note that I've trimmed some lines for display purposes), and when the chart is run it will pick up your setting for the height, based upon the value returned from your Before Header process:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="#HOST_PROTOCOL#://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
        width="#WIDTH#"
        height="&P7_CHART_HEIGHT."
        id="#CHART_NAME#"
        align="top">
    <param name="movie" value="#IMAGE_PREFIX#flashchart/anychart_5/swf/...............................">
    <param name="quality" value="high">
    <param name="allowScriptAccess" value="sameDomain">
    <param name="allowNetworking" value="all">
    <param name="scale" value="noscale">
    <param name="wmode" value="transparent">
    <param name="FlashVars" value="initText=#FLASH_INIT#&xmlLoadingText=............................................">
    <embed src="#IMAGE_PREFIX#flashchart/anychart_5/.......................................
           quality="high"
           width="#WIDTH#"
           height="&P7_CHART_HEIGHT."
           name="#CHART_NAME#"
           scale="noscale"
           align=""
           allowScriptAccess="sameDomain"
           allowNetworking="all"
           type="application/x-shockwave-flash"
           pluginspage="#HOST_PROTOCOL#://www.macromedia.com/go/getflashplayer"
           wmode="transparent"
           FlashVars="initText=#FLASH_INIT#&xmlLoadingText=#FLASH_................................................">
    </embed>
    </object>
    #CHART_REFRESH#
    {code}
    I hope this helps.
    Regards,
    Hilary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Dynamic row heights for NSTableView

    Hi everyone,
    I just began writing OSX apps not too long ago. I'm having trouble with dynamically setting my row heights for an NSTableView. I've seen a really old solution where the subclass the view but I also found a solution posted by Corbin on Stack Overflow. However, I don't quite understand and am hoping someone has sample code?
    For my usecase, I have a list of text of varying lengths and are displayed in a multi-line text field. The rows for the table cut off the text and so I'm trying to resize them to fit the text. When I check on the setRowSizeStyle to custom - it defaults to 71 and is fixed at 71. I hope someone can help me out. I think the solution posted by Corbin should solve my problem but I have no idea how to implement it.
    Thanks

    Etresoft, the function that you gave me for some reason constantly calculates the height as 39. Minus the fudge factor of 25 means I'm constantly getting 14 for my height for all rows and some of the text is cut off. I think it might be because I'm passing in the wrong size into my NSTextContainer.
    Here's my code right now:
    - (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row
        Message *message = [thread objectAtIndex:row];
        NSTableColumn *tableColoumn = [conversationView
                                       tableColumnWithIdentifier:@"tableColumn"];
        if (tableColoumn)
            NSCell *dataCell = [tableColoumn dataCell];
            [dataCell setWraps:YES];
            [dataCell setStringValue:message.message];
            CGFloat height = [self calculateIdealHeightForSize:[dataCell cellSize] content:message.message];
            NSLog(@"Message: %@ Height: %f", message.message, height);
            return height;
        NSLog(@"No size found. Returning default size for 100.");
        return 100;
    - (CGFloat) calculateIdealHeightForSize: (NSSize) size content: (NSString *) content
        NSTextStorage * storage =
        [[NSTextStorage alloc] initWithAttributedString:[[NSAttributedString alloc] initWithString: content ]];
        NSTextContainer * container =
        [[NSTextContainer alloc] initWithContainerSize: size];
        NSLayoutManager * manager = [[NSLayoutManager alloc] init];
        [manager addTextContainer: container];
        [storage addLayoutManager: manager];
        [manager glyphRangeForTextContainer: container];
        NSRect idealRect = [manager usedRectForTextContainer: container];
        // Include a fudge factor.
        return idealRect.size.height + 25;

  • Dynamically set maximum row count in Interactive Report

    Hi,
    Has anyone worked out a way of dynamically setting (e.g. via select list) the maximum row count value for an Interactive Report, taking into account issues with order by when the report is filtered. I'm aware of solutions like this: http://www.talkapex.com/2010/10/apex-reports-no-limit-downloads.html but as far as I can tell this doesn't work when the report is filtered and the IR is rewritten in the background. Data sets then become unreliable because they are reordered.
    Thanks,
    Mike

    Hi Mike,
    You can do that with javascript
    gReport.search('SEARCH',100)the 100 you can replace for any number you like.I have a report with filter,sorting and groups and it is gives no problem there.
    any number means any number but not higher than the number you set at Maximum Rows Per Page.
    You probably can mix the solution from Martin and the above code.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.
    Edited by: kvlek on 24-apr-2013 12:29
    Edited by: kvlek on 24-apr-2013 12:35

  • Iframe not scrolling to content below set height in IE9

    Because iframe height of 100% didn't render correctly (in any browsers) I chose a set height (600px) in which to display my clients' property listings within one of their site pages.
    All works reasonably all tested browsers (double scroll bars in Chrome and Safari -- div and iframe -- despite that the div isn't set to have such, but I can likely fix that); IE9, though, is nonfunctional:  In IE9 I get a Y scrollbar, as defined, however it does not scroll past content that fits into 600 pixel iframe height.  That is, is does not scroll to show the rest of the iframe page.
    I have tried separately defining x and y scrollers as well as simply calling for scrolling in general; no luck.
    I have been searching for hours for a fix, and have tried every combination of style coding to the iframe itself as well as the overall style sheet (to the div).  I also read the soure for the page rendered in IE9, and the style coding was as I'd written it.
    It has to be a simple fix, or others would be having this IE9 issue, too, right?
    Have even added <meta http-equiv="X-UA-Compatible" content="IE=8"> to the header; didn't change anything.
    Anyone know what is going on -- and how to fix it?
    I apologize for how jumbled both the CSS and source code is for this site.  If I were recreating the site today, I could do a much cleaner job.
    Here are a few tries:
    http://cbm1.com/retail_property_listings/costar.html
    http://cbm1.com/retail_property_listings/costar3.html
    This version (more info in the CSS, less inline) gets rid of the double scrollers in Safari and Chrome (while still working in FF) but still the same doesn't-scroll-beyond-the-600px-iframe-pane-height issue in IE9.  Tried moving the meta directive toward IE8 to immediately above the body tag as well as first meta tag on the page; neither resulted in any IE9 rendering change:
    http://cbm1.com/retail_property_listings/costar4.html
    Happy to simply paste the inline + CSS coding alone in this window, if that's easier for anyone.

    Because iframe height of 100% didn't render correctly (in any browsers) I chose a set height (600px) in which to display my clients' property listings within one of their site pages.
    All works reasonably all tested browsers (double scroll bars in Chrome and Safari -- div and iframe -- despite that the div isn't set to have such, but I can likely fix that); IE9, though, is nonfunctional:  In IE9 I get a Y scrollbar, as defined, however it does not scroll past content that fits into 600 pixel iframe height.  That is, is does not scroll to show the rest of the iframe page.
    I have tried separately defining x and y scrollers as well as simply calling for scrolling in general; no luck.
    I have been searching for hours for a fix, and have tried every combination of style coding to the iframe itself as well as the overall style sheet (to the div).  I also read the soure for the page rendered in IE9, and the style coding was as I'd written it.
    It has to be a simple fix, or others would be having this IE9 issue, too, right?
    Have even added <meta http-equiv="X-UA-Compatible" content="IE=8"> to the header; didn't change anything.
    Anyone know what is going on -- and how to fix it?
    I apologize for how jumbled both the CSS and source code is for this site.  If I were recreating the site today, I could do a much cleaner job.
    Here are a few tries:
    http://cbm1.com/retail_property_listings/costar.html
    http://cbm1.com/retail_property_listings/costar3.html
    This version (more info in the CSS, less inline) gets rid of the double scrollers in Safari and Chrome (while still working in FF) but still the same doesn't-scroll-beyond-the-600px-iframe-pane-height issue in IE9.  Tried moving the meta directive toward IE8 to immediately above the body tag as well as first meta tag on the page; neither resulted in any IE9 rendering change:
    http://cbm1.com/retail_property_listings/costar4.html
    Happy to simply paste the inline + CSS coding alone in this window, if that's easier for anyone.

  • Dynamically set the size of the VIEW

    Hello,
    I am looking to set the size of my VIEW which is called in following way:
    IF iv_show_in_pop_up EQ abap_true.
        wd_this->raise_simulation_pop_up( ).
    I want to set of the size of the VIEW if it a pop-up.
    ENDIF.
    How can i get access to the view and set the size. Please Help.
    Regards,
    Piyush

    Hi Piyush,
    Check what Anzy has to say in [here|https://forums.sdn.sap.com/click.jspa?searchID=18635339&messageID=3289078]:
    "You have to go to specific view , which will be embedded in the pop up window.In the view go to ROOTUIELEMENTCONTAINER and set the width and height.This way you can restrict the size of the pop up window."
    This is [another approach|https://forums.sdn.sap.com/click.jspa?searchID=18635339&messageID=5836334] suggested by Abhimanyu Lagishetty for dynamically setting the size of your window:
    "Pass the URL like this to the create_external_window
    javascript:window.moveTo(0,0);window.resizeTo(screen.width,screen.height);window.location.href="http://google.co.in";
    Instead of http://google.co.in write your URL it will maximize the window"
    Regards,
    Uday

  • Dynamically set itemRenderer content width

    Hey all,
    thanks for taking time to look at this. what I'm trying to do
    is simple, I think, but evading me. I've got a datagrid set to 100%
    width. I've got a total of 7 columns, the first 2 are fixed width.
    The remaining 5 columns (and their contents, importantly), should
    dynamically size to take up the remaining area. I'm using
    comboboxes within these columns, and can't seem to set the width of
    these comboboxes based on the width of the column they appear
    within. I've tried just setting them to 100%, but that causes a
    scrolltrack to appear and the combobox is hidden behind the
    scrolltrack.
    help is greatly appreciated

    Are you using a drop in, inline, or custom component for an
    itemRenderer? I do not think you can do this with a drop in item
    renderer. I think you can do it using an inline itemRenderer but
    this is not an ideal solution. I think that if you use a custom
    component as the item renderer you could use databinding on the
    width of the combo box where the data grid column of the data used
    is the source.
    ie. comboBox width="{columnx.width}" where columnx
    corresponds to the column housing the combobox.

  • Setting height for grid layout cell

    hai,
    i am creating my own layout for my framework page.i am using grid layout tag presents in htmlb.i want to set height for my grid layout cell using taglib but there is no height attribute as per i know.is there any way for that.....
    if anybody knows about it please tell me. if u have an sample code also please send me...
    regards,
    prasath

    Hi,
    Try the method setHeightPercentage in both GridLayout and GridLayoutCell classes.
    GridLayout result = new GridLayout();
    result.setHeightPercentage(100);
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • 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.

  • Dynamically setting column width doesn't work all the time

    I wanted to dynamically set the width of a column in a JTable to be half of the width of a another column. This should happen whenever the frame is resized. But somehow I need to tell this twice to Java. If I don't then sometimes the column width isn't set new.
    Is this a Java bug or what?
    public void componentResized(ComponentEvent ce)
         try
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              // Again, or it won't work:
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
         catch(SQLException e)
    }

    Is it possible that your call to
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    is altering the response created by
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    ? Have you tried calling them once but in the other order? Or just calling the "setMaxWidth" call twice and leaving out the second "setMinWidth"?
    Good luck... :)

  • Dynamically set Tab current pages

    Here’s a quick summary of the situation I’ve got.
    Let’s say I have an application with 4 report pages. Three display some data about rows in my database. All 3 contain the column ‘Control #’ which is linked to the 4th report which displays more detailed information about that Control # object.
    When I click on the Control # link and go to the 4th report, I would like the Tabs current for the 4th report to match the Tabs current of the page I came from. In other words, if I clicked on the Control # link on page 1, I would like the 4th pages current tabs to match page 1’s current tabs. The same goes for pages 2 and 3.
    I’ve tried &(some global variable). and :(some global variable) and v(‘some global variable’) in the Tabs current pages fields but that doesn’t work.
    Is it possible to do what I’m trying to do?

    Reports 1, 2 & 3 all exist in individual two tab pages. Pages 1 & 2 would have the same parent tab and their own sub tab. Page 3 would have its own parent tab. When in those pages the appropriate tabs are 'current'. When I click on Control # on any page and go to page 4, I would like the source pages tabs to stay 'current' when displaying page 4.
    By the way, my actual application has in the neighborhood of a dozen pages which are like reports 1,2,& 3 as I described above. Rather than build a dozen identical (with the exception of current tabs) page 4's, I would rather build one page 4 and dynamically set page 4's current tab to the source page's current tab.
    It's a visual reminder to the user as to which page they were on when they clicked the Control # field.
    I also have 8 - 10 SVG charts which I have linked to reports. About 6 of them display the same report using different parameters. Again, I would like THAT report to have the same current tab as the source chart (chart clicked on to invoke the report).

  • Dynamically Set date not changing in schedule Job

    Hi,
    I have created a report with "Order Date" as one of the parameters on the selection screen. I have created a variant, say 'X' , to set this date parameter dynamiccaly as "Current date - 31 days".
    I have scheduled this program to run in background with the 'X' variant daily at certain time.
    Now, for the day on which I created this job , the Order Date is set to correct date . For ex if I am scheduling the job tdy it will be set to 06/10/08. However, for next day , that is tom this date is not getting changed. i.e Tommorrow again Order date is 06/10/08 but it should have been 07/10/08.
    So basically this dynamically set date is not chaning in the scheduled job.
    Any idea why this is happening and what is the corrective measure for this.
    Thanks!

    There is an INITIALIZATION event in the program.......
    Do the processing your date in that event only....
    for ex....
    select-options: date for order-date.
    INITIALIZATION.
    date-low = sy-datum or wat ever.
    Thanks
    Saurabh

  • Dynamically Set Subreport Background Color to the Same Value as Main Report Background Color

    I have a report that contains a subreport.  The main report has groupings in it.  I am dynamically setting the background color of the group rows based on an expression.  That part is working fine.  The problem that I am having is that
    I don't know how to get the subreport to "inherit" the background color of the grouping that holds it.
    Basically, I have different row shadings on my report differentiating the groupings except for the rows where the subreport shows.
    How do I go about setting the subreport background color to equal it's contaiing grouping's background color?  Thanks in advance for any and all assistance provided.

    The parameter method given by gpshukla will send the info to the subreport, but you don't need the color parameter in the main report, only the subreport. The trick is in setting the value of that parameter.
    Right-click the cell with the embedded subreport, you can select subreport properties.
    Select Parameters and add a parameter.
    The name column is the name of the parameter in the subreport (color) and value is the value to set it to.
    Set name to "color" (no quotes).
    Set Value to the same expression used to set the background color for the row.
    In the subreport, click the design surface to select the report (not header or footer).
    In the properties pane, select background color and choose expression from the dropdown.
    Type =Parameters!color.Value into the expression builder.
    This will work assuming that background color in the main report row will not change without also refreshing the subreport.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

Maybe you are looking for

  • Problem with characters in text field

    hi all i am missing a few characters, once i load text into a dynamic text field. chars are not missing per say; they are being replaced with empty squares. characters like the euro sign and accentuated german a letter. whats is weird is that other a

  • Real Dynamic Images

    I have a pretty bizarre question all revolving around pure client laziness. They wanted to customize the APPS PO report. Now their corporation is being split into separate organizations that all want to use the same report but they all want their own

  • Internal parts for a MBP

    I accidentally tore the ribbon cable going to the sleep light on the front of my MBP while changing out the hard drive. The ribbon runs across the hard drive and is very fragile. Where can I purchase this cable in order to replace it?

  • Table display thumbnails

    Hello, I am trying to create what amounts to a table with product thumbnails. When using the Insert -> Application Data -> Dynamic Data -> Dynamic Table it fills in a table with just rows. I need an image placed in a grid of rows and columns. Any sug

  • When I try to set up sync on an xp netbook nothing happens after clicking the (I already have an account) Connect button

    I am trying to add an XP netbook to sync. I go to tools/set up sync. Neither the Connect nor Create a New Account buttons work. (I tried the Create a New Account just to see if it works) The Cancel button does work. What is the problem?