Setting application max height to 100%

My application is set to take up 100% of the width and height
of the browser area. This works great as long as the child
components fit. But when one of the child components gets taller
than the available browser height, the application also gets
taller, and scrollbars are added to the application. I would rather
have the scrollbar on the child component. If I set the application
scrollbar policy to "off", the application is *still* too big, and
it just cuts off below the end of the browser window. How can I
force the application to be 100% of the browser width all the
time?

I don't have time to try things and feel like I know what I'm
doing, but is any of this related?
http://blogs.adobe.com/aharui/2008/01/flex_and_scalemodes.html

Similar Messages

  • Deployment in browser: setting width and height to 100% (or any %)

    According to http://docs.oracle.com/javafx/2.0/deployment/deployment_toolkit.htm for deploying a browser embedded JavaFX application, you can set the width and heigth properties to either a fixed value or a percentage value (or, assumedly, any value the browser can accept).
    >
    width and height
    Dimensions used to reserve space for an embedded application. Could be absolute or relative (for example, 50 or 50%). (Required for embed().)
    >
    However, when I try to set a percentage value (e.g. 100%) from the Netbeans "Run" properties dialog, I get the following exception:
    java.lang.NumberFormatException: For input string: "100%"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
         at java.lang.Integer.parseInt(Integer.java:492)
         at java.lang.Integer.valueOf(Integer.java:582)
         at com.sun.javafx.tools.ant.DeployFXTask.execute(DeployFXTask.java:103)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)As can be seen, the exception happens in the DeployFXTask.execute method. It seems that this method requires the values to be integers.
    So the question, how can I set the embedded application dimensions to a percentage value? (Without having to edit the HTML file manually after the build - which is a workaround.)
    Edited by: Knut Arne Vedaa on 21.feb.2012 21:06

    As a workaround, in the meantime, look at the build file in the source of the Ensemble sample application (http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html) which will patch a generated html file using a custom post processing ant task - this would not work out of the box using the NetBeans generated ant build files though. You could file an issue with NetBeans to ask them to support the workaround in their generated build scripts, but they may just decide to wait until a fix is available in the core platform. As there is a workaround though, I don't think this would be classified as a showstopper issue - just a pretty annoying thing.

  • Listview inside Grid with Rowdefinition of height Auto ? and Max Height of 100 not display scrollviewer on load

    <Grid Grid.Column="0" Grid.Row="0" x:Name="grdValues">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" MaxHeight="100"></RowDefinition>
                    <RowDefinition Height="5" ></RowDefinition>
                    <RowDefinition Height="Auto" MaxHeight="100"></RowDefinition>
                    <RowDefinition Height="5" ></RowDefinition>
                    <RowDefinition Height="Auto" MaxHeight="100"></RowDefinition>
                    <RowDefinition Height="Auto" MaxHeight="100"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="300"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                    <ListView x:Name="lstGenericList"
                                      Margin="4,0,0,0" Grid.Column="0" Grid.Row="0"
                                        ItemsSource="{Binding Items}"
                                        ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                                        ScrollViewer.VerticalScrollBarVisibility="Auto">
                        </ListView>
                <GridSplitter  Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ResizeDirection="Rows"  ResizeBehavior="PreviousAndNext"   Height="5"></GridSplitter>
                <!--<Separator Height="2" Grid.Row="2" />-->
                <ListView x:Name="lstBrandList"
                                      Grid.Column="0" Grid.Row="2" Margin="4,0,0,0"
                                        ItemsSource="{Binding Items}" 
                                        ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                        ScrollViewer.VerticalScrollBarVisibility="Auto"
                          VerticalContentAlignment="Stretch"
                          VirtualizingStackPanel.IsVirtualizing="True" 
                           VirtualizingStackPanel.VirtualizationMode="Recycling">
                    <ListView.ItemContainerStyle>
                        <Style TargetType="{x:Type ListViewItem}">
                            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                            <Setter Property="Focusable" Value="false"/>
                        </Style>
                    </ListView.ItemContainerStyle>
                </ListView>
                <GridSplitter  Grid.Row="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ResizeDirection="Rows"  ResizeBehavior="PreviousAndNext"   Height="5"></GridSplitter>
                <!--<Separator Height="2" Grid.Row="2" />-->
                <ListView x:Name="lstBrandListv"
                                      Grid.Column="0" Grid.Row="4" Margin="4,0,0,0"
                                        ItemsSource="{Binding Itemsa}" 
                                        ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                        ScrollViewer.VerticalScrollBarVisibility="Auto">
                </ListView>
            </Grid>

    I should think it is a combination of auto and stretch you have there on the sizing which makes it impossible for anything to work out how big it's supposed to be inside a scrollviewer... in an auto height row.
    EG I would take this off:
    VerticalContentAlignment="Stretch"
    And any other stretches in there.
    See what happens.
    Think about giving the rows some sort of an actual height.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

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

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

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

  • Setting max-height with contain for bg image

    Hi , I currently have a simple image that I want to sit in the top right corner, however I would like it to scale so the whole image fills the right hand of the viewport (only if they make the viewport smaller than the original image though). The contain function does this job however it also scales the image upwards should the user go full browser which looks horrible. So my question is can I use ( background-size: contain;) but add a max-height line to it also. I have tried every combination possible but nothing. Im either doing something wrong or it cant be done.
    Site: http://www.stuartskelton.co.uk
    my css is:
    body  {
    margin: 5px;
    background-attachment: fixed;
    background-image: url(../images/neilquote.gif);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    Thanks for looking.

    You can't add a max-height to the existing rule, but you could use a media query to change the value of background-size like this:
    body  {
    margin: 5px;
    background-attachment: fixed;
    background-image: url(../images/neilquote.gif);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: contain;
    @media screen and (min-height: 462px) {
        body {
            background-size: 55px 461px;

  • Possible to set min/max size to a resizable Stage? If so, how?

    Is it possible to set a minimum and maximum size to a resizable Stage? If so, how would this be done? Do I use some kind of onResize event handler or is there some other way?
    Here is a sample code where I have a 500 x 500 px image in a 300 x 300 px scrollable scene that is in a resizable stage. Right now, I am able to resize the stage to any size, but I would like to limit the resizable minimum width and height to 100 x 100 px and limit the resizable maximum width and height to 600 x 600 px.
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.control.ScrollView;
    import javafx.scene.control.ScrollBarPolicy;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    var scene: Scene;
    Stage {
        resizable: true
        scene: scene = Scene {
            width: 300
            height: 300
            content: ScrollView {
                hbarPolicy: ScrollBarPolicy.ALWAYS
                vbarPolicy: ScrollBarPolicy.ALWAYS
                width: bind scene.width
                height: bind scene.height
                node: ImageView {
                    image: Image { url: "{__DIR__}roses.jpg"}
    }

    Hi, I don't understand how WidgetFX is going to allow me to set min/max size to a resizable Stage. After all, it is a desktop widget platform and I'm not trying to build a desktop widget. None of the demos I've tried use a decorated Stage with platform decorations that can be used to drag and resize the Stage.
    I'm just trying to limit the min/max size of a resizable Stage. If you think WidgetFX will address my problem, I think a better solution is the JavaFX Stage Controller class I found available at http://code.google.com/p/memefx/. However, the JavaFX Stage Controller class still doesn't address the problem I have because it doesn't stop the user from dragging the Stage beyond the size restricted by the min/max height. It only reverts the Stage to the max size after the user already dragged and resized the Stage beyond the max resizable width/height.

  • Why no min/max height?

    Since I've started creating responsive content with Edge, once thing has really bugged me - and that's the omission of a Min H and Max H alongside Min W and Max W. I've been told it's not necessary as height can be constrained to width, but I still find myself needing it.
    Two scenarios I've frequently come across:
    • An object is set to 100% width. When a window is resized to a landscape orientation, I want an object's maximum width dictated by it's height to prevent it taking up too much space in the layout. For example, in portrait layout it may be W100%, H10% - turn that to landscape and it might become W100%, H60% if I've constrained the proportions. I want to be able to cap it at say H30%, so after a certain point it's just the width that changes and not the height.
    • I have a series of square images nested within a horizontal scrollable div. I want these images to stay in proportion but always fill to H100% of the container div, regardless of its shape (portrait, landscape). It seems to simple but I just can't make it work without a min/max H functionality.
    Can anyone explain why this feature is missing?
    Thanks

    As you know, IE doesn't support min/max-height/width.
    With regard to HEIGHT, you can work around IE's lack of support for min-height since the way that IE deals with an explicit height is as if it were min-height.  For example, if you have this CSS:
    #foo { min-height:250px; }
    you can *hack* a fix for IE like this -
    #foo {
         min-height:250px;
         _height:250px;
    The "_height" style is ignored by all browsers except IE<8.  For those versions of IE that 'read' that style, they interpret it as 'height' and since IE treats an explicit height value as if it were 'min-height' you are set.  Another way (and a cleaner way in my opinion) would be to add an IE conditional comment to the page, e.g.,
    <!--[if lte IE 7]>
    <style>
    #foo {
         height:250px;
    </style>
    <![endif]-->
    That takes care of min-height.
    The solutions for max-height or min/max-width are not so simple.  Google for IE CSS calculations to see how you might approach them.

  • Clarification about parameters to be changed for max no of 100 conv excd

    Hi,
    In our system we had received the error:
    Connect to SAP gateway failed
    Connect_PM  TYPE=B MSHOST=xxxxxxxxxxxxxx GROUP=PUBLIC R3NAME=xxx MSSERV=sapmsXXX PCS=1
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       max no of 100 conversations exceeded
    due to which some users were unable to work in the system.
    The threads that i have found while searching on the topic have suggested changing the parameter CPIC_MAX_CONV=500 (or greater) as per the note 314530.
    And as mentioned in the SAP note 316877:
    " Reduce ~timeout on the ITS machine to enforce the automatic termination of unused sessions."
    Now in SMGW i can see the "Active Connections" (first page of the transaction) and also the drop down option "logged on clients" which gives another list.
    I am now trying to understand which timeout parameter controls which list.
    Most of the entries in the Active connections list are from the TP jlaunch (and seem to be coming from the java stack of the same system). And most of the entries in the Logged on clients list are from the TP SAPSLDAPI.
    I need to know which timeout parameter (as per note 316877) needs to be changed for the problem being faced.
    Or have i misunderstood this ~timeout  parameter and it should be set in Windows environment similar to the CPIC_MAX_CONV parameter ?
    Regards,
    Rohan.

    Hi,
    Thanks for your responses.
    I will be changing the CPIC_MAX_CONV parameter.
    But I would still like to clarify about the other parameter : "~Timeout"
    and be prepared to take action on this as well.
    As per the (conflicting) information I  have so far this seems to be some parameter that is to be maintained in each individual service in SICF ?
    Or do we have any synonymous itsp* or gw* parameter which I can set for the timeout?
    Regards,
    Rohan.

  • Broadcast - ERROR max no of 100 conversations exceeded

    We've scheduled 3 reports to email PDF's to approx 400 users but the BEx broadcaster only managed to send out about 80 emails. in the various logs and traces I can see and error that states "ERROR max no of 100 conversations exceeded".
    I can find various notes about this refering to various sytstem parameters but as far as I can tell our parametrs are set correctly e.g.
    gw/max_conn 500
    gw/max_sys 300
    gw/max_overflow_size 10000000
    gw/max_shm_req 50
    rdisp/tm_max_no 200
    rdisp/max_comm_entries 500
    As I understand it from the notes we should increase the environment variable CPIC_MAX_CONV. However the note I'm looking at (316877) states that this environment variable is on the ITS server but from talking to our Basis support the version of netweaver we are running doesnt have an ITS server?? Dont really know what all that means. Any ideas on that one or about the error message as a whole would be greatly appreciated.
    If it's any help I can also see in SM21 that at the time of broadcasting the users got the error:
    > Conversation ID: 33568780
    > CPI-C function: CMSEND(SAP)
    Communication error, CPIC return code 017, SAP return code 450
    Thren in the broadcast log via RSRD_LOG the users have the error:
    Java communication error: Error when opening an RFC connection RSBOLAP017
    Thanks

    Hi,
    Try using these threads, if you get some help from them.
    /thread/174978 [original link is broken]
    RFC_ERROR_COMMUNICATION--max no of 100 conversation exceeded
    AI_DIRECTORY_JCOSERVER - ConnTest issue Error "max no of 100 conversation"

  • Max no of 100 communcations exceeded EP 7.0 NW  2004s SP14

    Hi Experts,
    Today we were experiencing a typical error on our portal while accessing one of our backend BW system.
    The error read as
    Connect to SAP Gateway failed
    LOCATION CPIC(TCP/IP) on local host with Unicode
    ERROR max no of 100 communications execeeded.
    MODULE r3cpic_mt.c
    We tested the connection of the RFC destination from the BW system and it also brought up the same error.
    The same was resolved only after restarting the corresponding portal server node.
    1.What is exact cause of this problem?
    2.Where is the value for this max no of communication set in Portal?
    3.How can we avoid this problem in future?
    4.Any document or note which tells in detail about the communication between portal and backend sytems.
    Thanks,
    Jimmy

    Hi Bala,
    Sorry for the delay in reply.
    So what you say is that the problem lies in the backend system i.e. our BW system and we need to change parameter on this system.
    But I have note that the parameter disp/max_comm_entries and  rdisp/max_arq both have current value 2000 on our BW system.
    Can you please explain that how this CPIC conversations between a backend SAP system and SAP portal works?
    Thanks,
    Jimmy

  • Max no of 100 conversations exceeded / CPIC-CALL

    Hi All,
    There are more than 4000 messages in SMQ2 Tcode and when we checked the SLDCHECK we got this error-:
    RFC ping returned exception with message:
    max no of 100 conversations exceeded / CPIC-CALL: 'ThSAPCMRCV' : cmRc=17 thRc=45
    After increasing the value for parameter CPIC_MAX_CONV 1000 it started working but after 1 min SLDCHECK again gave the same error.
    We have already checked and implemented the SAP Note :316877.
    I have one doubt this Note says that CPIC_MAX_CONV value should be 5000,is it really required?
    I have checked the SLDCHECK with value 1000 for CPIC_MAX_CONV .
    Pls suggest the solution.
    Regards,
    Prashant
    Edited by: Prashant Shukla on Jan 27, 2009 12:50 PM

    CPIC_MAX_CONV value should be 5000,is it really required?
    No, this is not mandatory. You should set it as per the load on your system.
    What is the error when you perform SLDCHECK?
    Regards,
    Prateek

  • Error in Portal "max no of 100 conversaction exceed" while getting 2 backnd

    hi experts
    i am getting following Error
    RFC_ERROR_COMMUNICATION: connect to SAP Gateway failed
    Max no of 100 conversaction exceed.
    please suggst me the needful??
    is this JCO-Destination error? or some thing Else??
    Thanks
    narpal

    Hi Narpal,
    By default Portal allows 100 simultaneous instant messaging sessions. But this number can be increased.
    Navigate to
    System Administration -> System Configuration -> Collaboration -> Real Time Collaboration (RTC) -> RTC Engine -> RTCEngine
    - Switch to Advanced Mode
    - Modify MaximumChatSessions parameter and set to 500
    - Restart the Portal Server
    The problem should be resolved then.
    Regards,
    Sudip

  • AI_DIRECTORY_JCOSERVER - ConnTest issue Error "max no of 100 conversation"

    I have a XI System (TXT)sitting on the WAS 640. Now the above mentioned RFC Connection (SM59) gives me an error saying "max no of 100 conversation". I searched on for this and found a SAP Note No. 316877. In the SAP Note which speakes abt Maximum Number of Converstion exceeded suggests to set the value for the CPIP_MAX_CONV variable to more than 100. I have kept the value 1000(One thousand) then too I am facing the same eror.
    Apart from this there is a very strange thing that I have been noticed. In The TXT( XI System) if we go to the user list i.e. to T-Code SM04 then their are about 45 entries for the user XIRWBUSER.
    Incase if I lock the user XIRWBUSER and then restart the Instance then I do not face any such poblems and also my AI_DIRECTORY_JCOSERVER Connection problem gets resolved. But This is not the solution , as I will be requireing the RWB user in my XI System for one or thjer other processes.
    Kindly guide me in this case.
    Regards,
    Premkishan Chourasia

    Hello Vijaya,
    Thanks a lot for your useful info.
    I read the SAP Note 887880 and implemented the recommeded correction. My system is working fine now.
    Thanks again to you.
    Regards,
    Premkishan Chourasia

Maybe you are looking for

  • Basic pay, recurring payments/deductions and additional payments

    Hi, My client wants to be able to view annual amounts payable to employees by wage type. This I would think would be a common requirement and I'm amazed there doesn't appear to be a standard extractor for this. Specific wage types include PA0008, PA0

  • The new version of Firefox, 18.02, will not load any pages. Why not?

    I attempted to open Firefox and was told it would load when the updates were applied, which was nothing new. It loaded fine and there were no incompatible add-ons, but it will not load any web pages. I'm on the same computer using Chrome to send this

  • Time Out Connection to Database

    Dears,, I am trying to connect to the database through Toad or Sql but it gave me the following error: ORA-12170: TNS:Connect timeout occurred Also, ifd i tried to log in the database UNIX server through Putty ,it gave me the following error Network

  • Memory Usage in FCE 2.0

    I am dropping frames capturing video from an HD camera (SONY HDR-HC1), after only 10 seconds or so. I went into System Settings and checked "Memory Usage", and it says I am using 100% of 185MB. I have 4GB of memory installed, and 3.64GB free at this

  • Forms 10g & forms 11g

    hi I'm asking are there going to be any jobs that need Forms 10g or Forms 11g programmers in future? thank you