Set Height automatically with screen size

Hi to everyone
Can i set the height af a component from backing bean, using the height of the screen?
I want that a panelgrouplayout fit the screen dimensions but for the height i have to take the screen height.
Can i do thi in a different way?
How can i take the screen height in a backing bean?
Thanks

Hi,
You can place the component you want to stretch inside a panelStretchlayout,This will stretch it automatically.
The width of the components can be set to stretch to screen width by using AFStretchWidth style class,but for stretching the height,the best practice is to keep it in a component that stretches its child.
Ref - http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/index.jspx?_afrLoop=46537651471503876#%2Ffeature%2FlayoutBasics.jspx%40
Regards,
guna

Similar Messages

  • Reading PDF in large screen mobile phone is often the horizontal screen reading,but the new adobe reader for Android mobile phone needs to be set to automatically turn screen, this is very inconvenient.

    Reading PDF in large screen mobile phone is often the horizontal screen reading,but the new adobe reader for Android mobile phone needs to be set to automatically turn screen, this is very inconvenient.I strongly suggest that the adobe reader Android version add manually rotating screen function, the best is the default horizontal screen reading.

    Reading PDF in large screen mobile phone is often the horizontal screen reading,but the new adobe reader for Android mobile phone needs to be set to automatically turn screen, this is very inconvenient.I strongly suggest that the adobe reader Android version add manually rotating screen function, the best is the default horizontal screen reading.

  • Problem with screen size in Premiere Pro CS5?

    I'm making a movie in Premiere Pro CS5 and I've ran into a problem with the screen size. The source screen shows my footage in widescreen (16:9) but my project screen is playing the widescreen footage in standard size (4:3) so it is cutting off some of the footage from the screen. I would like to make my entire project standard size so how do I do that? (Most of the chopped off footage was adjusted in After Effects so does that have anything to do with it?)
    Thanks for any help you can give!

    The properties of the footage are:
    872 x 486
    00;00;25;00, 29.97 fps
    48000 Hz - 32-bit Float - Stereo
    The properties of the sequence are:
    Editing Mode: DV NTSC
    Timebase: 29.97 frames/second
    Video:
    Frame Size: 720 horizontal 480 vertical 4:3
    Pixel Aspect Ratio: D1/DV NTSC (0.9091)
    Fields: Lower Field First
    Display Format: 30fps Drop-frame Timecode
    Audio:
    Sample Rate: 48000 Hz
    Display Format: Audio Samples
    Video Previews:
    Preview File Format: NTSC DV
    Codec: DV NTSC
    Width: 720
    Height: 480
    I'm also quite a beginner at Premiere Pro and basically all the Adobe programs, so are there any good websites (preferably free) that give good help and information for beginners like me?
    Thanks!

  • Set an array with undeterminate size

    I should know this by now, but go figure. If I want to set up an array of Strings, yet I do not know how many Strings I am going to stick in it, how would I do so? For example, if I want to create an array myArray, and I do not know whether I am going to put 15 elements in it or 500, how would I set the length to be indeterminate, or something like that, so I do not get an ArrayIndexOutOfBoundsException?
    Thanks,
    Dan

    Ah, that's a good idea. Thank you.
    Actually, while we're talking about arrays, is there some sort of way to specify where an iterator is in an array during a for loop?
    In other words, if I have an array of strings, and want my code to do something if the element in the array is greater than 2, how would I go about doing that? In case that didn't make sense, let me provide an example.
             int[] anArray = {1, 2, 3};
             for (int i : anArray) {
                  if (i > 0) {
                       System.out.println("This number is greater than 1");
                  else {
                       System.out.println("This number is the number 1");
             }I'm basically trying to say the same thing, except using an array of strings. In the above example, if i is greater than 0, i.e. it is on the first or second value of the array (2 and 3, respectively) it will print out that the number is greater than 1. Otherwise, it will say the number is 1.
    So my question now is: how could I do something similar using an array of strings? If the iterator is on the second string element in the array or greater, how could I signify that?
    Please let me know if that doesn't make sense. And thank you for your help.
    Dan

  • Best practice for setting or detecting screen size?

    Hi All,
    Trying to determine a best practice for setting or detecting the screen size. For playbook and iOS, I can set them. But for Android, the number of devices is too large so I'd rather detect. My first choice is to use the stage.stageHeight and stage.stageWidth. This works fine if I set my stage properties with standard meta data:
    [SWF(height="320", width="480", frameRate="64", backgroundColor="#010101")]
    However, if I use the application descriptor file to set the stage dimentions (as suggested by Christian Cantrell here http://www.adobe.com/devnet/flash/articles/authoring_for_multiple_screen_sizes.html)
    <initialWindow>
    <aspectRatio>landscape</aspectRatio>
    <autoOrients>false</autoOrients>
    <width>320</width>
    <height>480</height>
    <fullScreen>true</fullScreen>
    </initialWindow>
    Then the stage.stageHeight and stage.stageWidth are not the correct numbers when my main class is added to the stage. Sometime after the main class is added to the stage, then those numbers are fine. Is there an event I can wait for to know that the stage.stageHeight and stage.stageWidth are correct?
    Thanks in advance!

    Hi Lee,
    Thanks for the quick response! However, for some reason the heightPercent & widthPercent metadata tags are not working as expected for me.
    I have a wrapper class that I target for compiling, WagErgApplePhone.as where I've got my metadata
    [SWF(heightPercent="100%", widthPercent="100%", frameRate="64", backgroundColor="#010101")]
    sets some stage properties
    stage.quality=StageQuality.LOW;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    and instantiates my main class
    var main:Main = new Main();
    addChild(main);
    my main class constructor even waits for the stage
    public function Main(){
    if (stage) init();
    else addEventListener(Event.ADDED_TO_STAGE, init);
    in my init function, stage.stageHeight traces out as 375 (expecting 320).
    i have a function which is called via a button press event by the user, and stage.stageHeight traces out correctly (320) there. that's what makes me think that if i wait long enough, i can get the correct stageHeight before init/drawing. but i'm not sure what event to listen for, or if there's another trick.
    if i use Capabilities.screenResolutionX and Capabilities.screenResolutionY the correct values are provided for mobile, but these values are not useful for the desktop and web version of the app. if there's no other solution, i'll execute different code depending on platform.
    again, for reference, my app descriptor:
    <initialWindow>
    <aspectRatio>landscape</aspectRatio>
    <autoOrients>false</autoOrients>
    <width>320</width>
    <height>480</height>
    <content>bin-iOS/WagErgApplePhone.swf</content>
    <title>WAG ERG</title>
    <fullScreen>true</fullScreen>
    <renderMode>cpu</renderMode>
    </initialWindow>
    looking forward to any other ideas to try out & thanks so much for your thoughts! if you want to really dig in, this is an opensource project at code.google.com/p/wag-erg/

  • Determining real screen size in meters

    it is possible to determine roughly viewing screen width and height f.e. in meters?

    It doesn't matter... you can't really get an accurate value for screen size.
    Yes, you can get the screen size in pixels, and the PPI (pixels per inch (screen resolution)). But you can't accurately translate that to physical measurements.
    PPI of 96 (standard Windows) would tell you that, in theory, a 1024 x 768 screen size would be about 10.6 x 8 inches, or about 13" diagonal (convert to meters or whatever at your leisure). But that's not true cuz I have a 17" monitor and I could set it at that screen size if I wanted.
    Which means that the PPI settings for Windows doesn't truly reflect what the monitor does with the video signal. Of course, you can still work back from the 10.6" x 8" measurement with that DPI to accurately size things on the monitor, relative to the size it shows on the actual monitor.
    Now, perhaps JNI talking to the video drivers or something could possibly give you some more detailed info, at least on some newer cards and monitors. I'm not really sure about that.

  • Publish screen size in flash website

    I create a website in flash professional 8, with screen size
    710 x 610 pixels. When I view it in "test movie" it looks good.
    But when I published from a host site it diaplay smaller.
    What did I do wrong? Any ideas?
    Thanks in advance!
    dafu

    try......
    checking the html tab in the publish settings and make sure
    that the dimensions are set correctly?

  • How do you hide elements for mobile screen sizes?

    I've built an interactive Edge page that is 1200 pixels wide. I'm working on making things responsive, and I would like to hide elements when the browser hits a mobile screen size - similar to adding a media query and setting an element to display:none at 450px or similar. How can I do this within Edge?
    If this is not possible within the interface, can I add my own media queries to the css to do this?
    Thanks.

    Hi ,
    Check out this forum post : Hide Elements with Screen Size CSS style sheets?. Might be helpful.
    Thanks and Regards,
    Sudeshna Sarkar

  • Screen size problem for schedule line bdc

    Hi All,
    I created a bdc for schedule line item maintainance of sales order thro' VA02,I did all coding on 20 inch color monitor in which the schedule line screen shows 18 lines using that i did recording for bdc.But when keyuser executes BDC on laptop it is not procceding.
    Please help me out with solution which is applicable on all kind of screens
    Regards
    Gaurav

    When you use BDC, you may have issues with screen size because number of lines displayed in table controls (and step loops) may vary according to the user screen, when the BDC is recorded (depending on recorder screen size), and then executed in A or E mode depending on user's screen size. When it's N mode, a default screen size is used by SAP.
    The only solution is then to both record and execute the BDC by activating the default/standard size checkbox (if you use CALL TRANSACTION: it's DEFSIZE field in CTU_PARAMS structure of the OPTIONS FROM keyword).
    For more information, refer to the documentation and the [BDC wiki|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInput-+BDC] + separate FAQ

  • How to set the screen size with nested Iview screen

    Can someone show me how to set the screen size with nested IView  screen.
    at the moment i only try it with trial and error untill it looks somewhat close. Is there a property in VC to set the size for Height and width.
    The same question is for the form. the form elements inside the form is easy but the actual form is still a challenge.

    Hi,
    Yes you are correct ,Still the Form and iview are not able to change thier Layout Structure using a Propery.
    it is available with VC7.1
    Govindu

  • IPad screen automatically enlarge many times. How to set it back to ragular size?

    My iPad screen automatically enlarge many times, I can not set it back to fit the regular screen size.  I tried to reset it already.  It looks like a huge print book.  No way to operate.  Anybody can shine some light? Thnx.

    Double tap the screen with three fingers to reduce the size.
    Go to Settings>General>Accessibility>Zoom and turn this OFF.

  • Time Machine on my iMac won't open iPhoto. It goes to desktop screen automatically. When I select User/Picture/Iphoto library it only brings up the preview page with the size of the folder. I can't get into the library to look for lost photos.

    Time Machine on my iMac won't open iPhoto. It goes to desktop screen automatically. When I select User/Picture/Iphoto library it only brings up the preview page with the size of the folder. I can't get into the library to look for lost photos.

    Thank You. This helps me alot to get into the masters and to see events and photos in a utilitarian way, but it is not as easy as viewing the normal iphoto format to find photos.  Can I do something else or did I not do something right to not see normal iphoto in Time Machine ?

  • Set frame to screen size

    hi everyone,
    i just have a quick question.
    any replies would be GREATLY appreciated...
    how do you set the size of a new frame to fit the size of the screen automatically. i have tried set size but it doesn't work when running on computers with different screen sizes...
    are there any standard methods for this ?
    thanks a bunch

    java.awt.Toolkit.getDefaultToolkit().getScreenSize() returns a the screen dimension as
    java.awt.Dimension

  • IPhone app screen size set up in Photoshop

    I'm designing an iPhone app in Photoshop. I want to work in 2X size.
    What size should I set the screen up in Photoshop to be able to export UI images and icons accurately?
    Should I use an iPhone 5 or iPhone 6 screensize?
    These are both 2X png but screensizes are different, therefore UI exported for the @2X size will differ depending on which screensize I first decide to start with.

    If you choose File > New and choose the Mobile App Design preset, you'll find the Size menu already lists most recent iPhone screen sizes including the 6 and 6 Plus.
    Mylenium's link is very helpful; if you go there and go to Icon and Image Sizes there's a table of dimensions for all of those things.
    If you have Photoshop CC 2014, you can set up Generator and Extract Assets to export layers (e.g. button designs) to multiple pixel dimensions automatically. That will be a lot easier and faster than manually sizing/cropping/exporting.

  • Cannot adjust page width to fit to screen size on some PCs with IE

    Hello friends, I am using APEX 4.0 and IE9 on different Windows 7 PCs . The page will go way off the screen to the right on one PC, and fits nicely inside the screen on another PC. This problem does not occur in Firefox on any PC. I have used Firebug to try to isolate the template or css settings. Using Theme_4, I have a breadcrumb region and 4 reports regions. One of the reports regions is in column 1 and 3 regions are in column 2. Display point is Page Template Body (3. Items above region content) for all the reports regions. The CSS is #themes/theme_4/css/theme_4_0.css. The template is One Level Tabs (Right Sidebar/Table Based). I tried various width="" using px and % under Edit Page Template-Definition-Body (see below). I tried style="width:800px" within the <div> tags. I have tried various other changes to theme_4_0.css and apex_4_0.css with no visible change to the page width on the obstinate PCs. I reset IE setting and deleted all personal settings on both PCs with no changes to either one, one fits on the screen and the other does not. The issue is that most of our users use IE so most of them will have to live with using the horizontal scroll bar to see the regions in column 2, unless we switch them all to Firefox (not a bad option, except that option works for our users only, we have no control over external browsers). I have tried suggestions from many discussion threads, as this problem has bothered us for quite some time. I know this is an IE problem, but any help is appreciated. Thank you.
    "|" represents screen size and "-" is the regions/content for the "bad" PCs.
    |----------|----------
    The "good" PCs look like this:
    |----------|
    Peter
    <div id="body">
    <table class="tbl-body" cellspacing="0" cellpadding="0" border="0" summary="">
    <tbody>
    <tr>
    <td class="tbl-main" width="100%">#REGION_POSITION_02##BOX_BODY#</td>
    <td class="tbl-sidebar">#REGION_POSITION_03#</td>
    </tr>
    </tbody>
    </table>
    </div>

    BD...
    I think your concerns are very reasonable. But I want to sort of refocus things a little bit for you here... it's not really a PC vs Mac issue... Rather, it's specifically an Internet Explorer issue. And you might say that this is synonymous...still 98% of the world uses IE, and you would be correct. Hopefully when the final version of IE7 comes out, it will finally embrace some of the modern day OPEN web standards without trying to make too many standards of its own (this is Microsoft, though).
    Anyways, in the meantime, I guess we all try to make the best of it. It's very easy to conclude that iWeb is not a viable tool for you, as long as you have something else to "fall back" on. With my limited knowledge of all things HTML, I have no such luxury. Instead, I have put up a notice on my site for IE users only that the site might not look its best on IE....this notice also encourages IE users to use FireFox, which is very much like Safari and will in 99% of cases display your iWeb pages just like you expect. You can see how I've done this here (but you have to surf from IE)... http://blog.dirtdoog.com
    I think many people in the PC world understand the limitations of IE. Certainly many don't, but you have to consider your likely audience, I guess. I believe that your website content is king. If your content is compelling enough to your intended audience, they will jump through hoops to see it in its full glory....but you have to make them aware of the problem. That's why I have chosen to take the path that I have taken.
    Let me know what you think.

Maybe you are looking for

  • Senior person - old computer ? reader download for windows 98

    I have windows 98 on my old computer and presently I have reader 4.0 and 5.0 Is there a more recent upgrade I can download for Windows 98? And where do I stop an auto update from downloading. Thankful if anyone can help hmnvs

  • External speakers on HP G72-130sa laptop

    I have been trying to connect Logitech S220 external speakers to my laptop via the headphone socket but can get no sound. Do I need to do anything on the computer itself (such as load drivers, adjust sound settings etc.).  I have been plugging the gr

  • Can I add blog entries with my ipad??

    I started a blog in iWeb on my macbook and then wondered if I could add entries with my iPad and iPhone since I'm not going to be traveling with my macbook.  Trying to do a travel journal via this method. 

  • [SOLVED] No sound in wine (ALSA / dmix)

    Hi! Getting no sound in (most likely) everything run trough wine. When run, winecfg says (this might be unrelated though?): ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream err:module:load_builtin_dll failed t

  • Green and pink Media. Premiere Pro CC v.8.1

    Hi, i have a problem with my media. i use XdcamHD 422 50i .mov clips.  and one bin with IMX codec. the sequece setting is Sony xdcam HD422 1080i but two days ago all the media with the IMX codec went green and Pink, audio is still ok. in the import p