How to stretch and shrink with browser resize

Is there a simple way to force stretch and shrink all
components and text as the browser window resizes? I tried 100%
width and height in the application tag but that only resizes the
main container. I want to also resize eveything inside the main
container and all the subcontainers including all text and all
graphic objects. With SVG this was simple. I also tried the
"Resize" effect but again that just resized the container and not
the elements inside the container. Any suggestions would be greatly
appreciated. Thanks.

Each child container is based on it's parent container. So if
you set a child height and width to 100%, it will stick to the
height and width constraints of the parent container. In other
words, you have to set the constraints from the top most parent
container, down to the bottom container and components. See this
slight modification of your example below. Setting both panels to
height/width = 100%, both panels resize accordingly as the window
is resized.
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="onResize();" resize="onResize();">
<mx:Script>
<![CDATA[
[Bindable] public var thisWidth:Number;
private function onResize():void{
thisWidth = this.width;
if (this.width >= 1020){
pnl1.setStyle("fontSize", 10);
if (this.width < 1020 && this.width >= 500){
pnl1.setStyle("fontSize", 8);
if (this.width < 500){
pnl1.setStyle("fontSize", 5);
]]>
</mx:Script>
<mx:Panel title="Panel 1" width="100%" height="100%"
id="pnl1" fontSize="10">
<mx:Panel title="Panel 2" width="100%" height="100%">
<mx:Canvas width="100%" height="100%">
<mx:Button label="Submit" horizontalCenter="0"
verticalCenter="0"/>
<mx:Label text="{thisWidth}" right="10" bottom="10"/>
</mx:Canvas>
</mx:Panel>
</mx:Panel>
</mx:Application>
Changing the font size is not as easy. All I can think of is
setting the font size based on the current size of the window, as
in my example above.

Similar Messages

  • How to declare and work with select-option in screen painter?

    hello there,
    can anybody plz suggest me ,how to declare and work with select-option in screen painter?
    neon

    Hi Blue,
    Please check these threads which will help you a lot..
    module pool programming " to add selection-option on screen"
    Re: Select option in Dialog program screen
    Re: SELECT-OPTIONS in Screen
    Good luck
    Narin

  • Typically, How many back and forths with Creative Support before they acknowledge your questi

    Typically, how many times does one have to go back and forth with Creative Support before they acknowledge an issue or question?
    This is ridiculous.
    I'm on the forth reply now.
    All I want to know is if there is a?64-bit ASIO driver for the X-Fi Titanium on 64-bit Vista?
    They will not answer me.
    All of my testing indicates that there is not a 64-bit ASIO driver for Vista, but they will not confirm or deny.
    :angry:

    dRe: Typically, How many back and forths with Creative Support before they acknowledge your question?U I don't know what Creative would have written if you asked SUpport these days?
    I assume, they lied when they wrote this. There are several walkarounds for XFI cards
    with beta drivers. In releas drivers they exclude the ASIOx64, but in beta it's included!
    Creative has a very awkward marketing strategy. This was with Vista not having EAX on Audigy as
    the said it is impossible. The newer X-FI was able to?do it and after a few weeks the Audigy also could-
    after paying for it. The same with DolbyDigital Li've... and now with x64 ASIO. They reduce features
    in cases the cheaper card had same possibilities as the more expensi've EMUs...
    Shame on them. I?baught a creative Card for the 4th time (SB, SB AWE32,Audigy2, and now Titanium).
    I'm going to thinking about selling it...

  • How to zoom and pan with Edge animate?

    Hi,
    I have been trying to make a project with Edge Animate, it is all about an image, but I want to be able to zoom and pan the image. Can you please send me an example if there is any around? or Can you explain me how to zoom and pan with Edge Animate?
    Thanks,
    Guasch

    I am having this same issue! I am searching through forums on what tools to use to create a good zoom and pan on an image that contains hyperlinks an other things, developed in Adobe Edge Animate.
    So far, here are some solutions I have come across:
    http://craigfrancis.github.io/zoomify/
    http://zynga.github.io/scroller/demo/dom.html
    These two seem to be the closest solutions to what I'm looking for. Now I just have to integrate the javascript into my adobe ege animate composition. Hopefully that won't be too hard. Are there any suggestions from the adobe community on how to do this?

  • Allowing a website to expand and shrink with a browser

    I am working on a website and wanted to know how to let a
    logo with butts right up to the left side of the screen but can
    also shrink and strectch with the browser so it will always start
    and end at the bottom and top of the browser.

    Ask your boss, "How high is up?"
    The notion that all the space on a page has to be filled is a
    hallmark of a
    rookie designer, whether on paper or screen. Your boss needs
    to hire someone
    with professional web design skills and then follow what he
    or she suggests.
    A boss who dictates things he or she has no knowledge of or
    experience in is
    going to end up with a disaster. The page you have created so
    far is doomed
    to failure. 20 layers?
    (Please show this message to your boss & suggest he or
    she log on here and
    learn the realities of web design.)
    Walt
    "margin_walker" <[email protected]> wrote in
    message
    news:f8or9s$4hn$[email protected]..
    > this is the site so far
    http://www.trinity3marketing.com/
    >
    > i would like the left icon to stretch to the bottom but
    also adapt to the
    > window size i guess is what i wanted to say. my boss is
    very adamant about
    > that,
    >

  • Can I make my web page stretch and shrink to fill different sized browsers?

    Hey team,
    I just built my first site in iWeb: www.dylanjamesgeorge.com
    I'm using iWeb version 3.0.2
    I set the page width to 1200px because that's what looks best on my screen, however when I look at the site on a larger or smaller screen it doesn't look good. When I check out some other websites they manage to make their content stretch to fill different sized browsers. Something about using relative sizes (%) instead of absolute sizes (pixels) for the page dimensions?
    I know iWeb doesn't offer this option, but I'm wondering if there's anyway to change the code manually.
    I'm just trying to avoid people with small screens having to scroll to see content and people with large screens being left with lots of void space on either side of the screen.
    Thanks in advance for your time.
    Dylan

    Hey Roddy,
    Thanks for your reply. I've read that before, but what I'm trying to do is get the content on my page to move as the browser window gets smaller. For example, if I grab the bottom right hand corner of my browser right now and make the window smaller, the content of this page will adjust itself to stay centered until the window is too small, THEN it will add a scroll bar. Any idea how to make this happen in iWeb?

  • How to cut and paste with MacBook Air

    How do I cut and paste with MacBook Air?

    Copying, Cutting, and Pasting in OS X
    You can easily copy, cut, or paste pictures, text, and other items easily using the built-in shortcuts and menus in OS X.
    Copying text
    To copy text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
    To copy using secondary-click, first secondary-click the text. Then, select the Copy button from the pop-up menu.
    To copy using the keyboard shortcut, select the text. Then, press both the C and Command (⌘) keys at the same time.
    Cutting text
    To cut text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
    To cut using secondary-click, first secondary-click the text. Then, select the Cut button from the pop-up menu.
    To cut using the keyboard shortcut, select the text. Then, press both the X and Command (⌘) keys at the same time.
    Pasting text
    To paste text, you can either secondary-click the text or use OS X’s built-in keyboard shortcut.
    To paste using secondary-click, first secondary-click the text. Then, select the Paste button from the pop-up menu.
    To paste using the keyboard shortcut, select the text. Then, press both the V and Command (⌘) keys at the same time.
    Austin

  • How to save and work with a Word document stored in the Oracle 8i Database?

    Hi,
    If you have any experience with saving and working with a Word document (stored in 8i) from Forms 6.0, then please let me know how.
    Thanks ...
    Peter Nielsen

    hi
    i had worked storing word documents in oracle8i.tell me what exactly u want to know.
    null

  • REGARDING WCM( work clearnce management )how it start  and assign with PM ?

    DEAR Guru's
    i am fresher in PM module and i want to start pm and vice-verse WCM i have an idea about PM module but not Work Clarence Management so how to start it and assign with PM module and also its configuration and end user document if you have these document then plz do needfully
    regards
    Atul sharma
    9909973893

    Hello Atul,
    Frankly, I'm also not aware of WCM process or steps... but just in case it helps you.
    Refer - http://help.sap.com/saphelp_47x200/helpdata/en/2b/1b713896fab752e10000009b38f889/content.htm
    Also try to search SAP WCM on google.. hope you will find something.
    Regards,
    Anup

  • How to install and work with oracle webcenter 11g

    Hi
    Will please guide how to install and work on oracle webcenter11g, i am fresher in oracle that's why. so please guide me
    Regards
    Rajesh P

    In order to create and develop a webcenter portal application, you only need to install JDeveloper and download the WeBCenter extensions. That's true.
    But this install does not include the WebCenter services like dicussions, document services, analytics,... If you want to use these and integrate them in your portal, then you would need to install the suite as described on my blog.

  • My screen dims and shrinks with a blue outline around the window.  It won't let me do anything unless it goes back to normal, but it won't stay that way for long.  What is wrong and how do I fix it?

    When I start up my screen will rapidly shrink to a smaller size with a blue border around the window.  It rapidly goes from full screen to this smaller screen with the blue border and back again.  It seems to be affected by the use of the mouse.  My mouse was old so I bought a new one....didn't help.  When I have to tabs or two applications open they seperate, shrink, and appear simultaniously on the screen.  This just started happening.

    Put in the correct password.
    http://iforgot.apple.com or http://appleid.apple.com

  • JTable: how to "synchronize" (and update) with an array ?

    Hello.
    I am new to the Swing and I have been googling to find a solution for my problem, but I've spent too much time and found nothing. Please give me some advice.
    So: I have an array of data and a JTable. The array is constantly being changed and I would like to update the JTable with every change in the array.
    Thank you so much for yr help.

    So here I am with an as-simple-as-possible example of my problem.
    Just run it, everything is in this class.
    And you'll have a table with 10 rows with 0 in every row. Every 2 seconds one line should change, but it doesn't, only if you resize the frame, or click in a cell the numbers in the cells will change.
    Q: how to change it without resizing or clicking into the table ?
    package MainFrame;
    import java.awt.BorderLayout;
    import javax.swing.JTable;
    import javax.swing.WindowConstants;
    import javax.swing.SwingUtilities;
    import javax.swing.table.AbstractTableModel;
    class NewJFrame extends javax.swing.JFrame {
         private static JTable jTable;
         public static void main(String[] args) throws Exception {
              SwingUtilities.invokeAndWait(new Runnable() {
                   public void run() {
                        NewJFrame inst = new NewJFrame();
                        inst.setLocationRelativeTo(null);
                        inst.setVisible(true);
              Generator gen = new Generator(jTable);
         public NewJFrame() {
              super();
              initGUI();
         private void initGUI() {
              try {
                   setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
                   jTable = new JTable(new MyTableModel());
                   getContentPane().add(jTable, BorderLayout.CENTER);
                   pack();
                   this.setSize(399, 263);
              } catch (Exception e) {
                   e.printStackTrace();
    class Generator extends Thread {
         private int[] array = new int[10];
         JTable table;
         public Generator(JTable table) {
              array = new int[10];
              this.table = table;
              this.start();
         public void run() {
              super.run();
              for (int i = 0; i < 10; i++) {
                   array[i] = i + 200;
                   table.getModel().setValueAt(i, i, 0);
                   try {
                        Thread.sleep(2000);
                   } catch (InterruptedException e) {
    class MyTableModel extends AbstractTableModel {
         private int[] array = new int[10];
         public int getColumnCount() {
              return 1;
         public int getRowCount() {
              return array.length;
         public Object getValueAt(int arg0, int arg1) {
              return array[arg0];
         public void setValueAt(Object value, int rowIndex, int columnIndex) {
              array[rowIndex] = ((Integer) value).intValue();
    }Thank you so so much my man.

  • How to prevent and deal with overheating

    Disclaimer
    I do not guarantee that the advice given here will help in every case of overheating.
    A BIG thank you to
    The HP forum members: CherylG, Dave_G, and Mumbodog for their suggestions.
    Guide
    01. Clean the vents of your notebook / netbook weekly using compressed air.  
              Resource:
              Reducing Heat and Fan Noise by Cleaning Air Vents
    02. Check is processor (CPU) highly loaded by any process or service using recommended tool.
              Windows 7:
              a) Resource Monitor which is built-in this system.
                   Resources:
                   Windows 7 Resource Monitor
                   How to Open Resource Monitor in Windows 7
              b) Process Explorer which you may download from here.
              Vista and XP: 
              Process Explorer which you may download from here.
    03. Update the HP software and drivers to the latest version.
             Click the Support & Drivers link here.
             In the search box type your notebook product number (p/n).
             Resource:
             How to Locate the Notebook p/n
             Choose ' Next '.
             Click ' Software & Driver Downloads '.
             Use the dropdown selector to select correct operation system and click ' Next '.
    04. Minimize the use of background tasks such as defragmentation and virus scans.  Use the scheduler to ensure these
             tasks are executed when the laptop is not being heavily used.
    05. Always place your laptop on a hard flat surface. Never place your notebook / netbook on lap, bed, couch, blankets,
             comforters or other soft / fabric surfaces that can block fans and air vents.
    06. Turn off your notebook / netbook before placing it into a briefcase or a backpack. Do not ever place an operating
             laptop in a confined space where heat can build up.
    07. Operate the laptop with a reasonable ambient room temperature.
             When the room temperature is high then if it's possible turn on the air conditioning or set the standing fan in the
             direction of the laptop.
    08. Never leave operating laptop with closed lid. This always generates heat inside laptop. You may close lid only if
             laptop will automatically go into sleep or hibernation mode.
    09. Install monitoring software. I always recommend HWMonitor (free software). You may check with it your
             notebook / netbook CPU (processor), GPU (graphic card), motherboard and HDD temperatures.
    10. Adjust power settings to your needs. Lower energy consumption will result lower heat generation.  
             Some proposals:
             - don't set brightness to max;
             - customize graphic card power settings;
             - set the correct power plan in your system;
                 a) Windows 7 select the " Power saver ";
                      Power plans: frequently asked questions - Windows 7
                 b) Windows Vista select the " Power saver ";
                      Power plans: frequently asked questions - Windows Vista
                 c) Windows XP select the " Portable/Laptop ".
                      Power Management in Windows XP
    11. Use a notebook cooler or a system for elevating your computer to reduce heat buildup.
             This is specially recommended for a heavy gamers.
             Resource:
             Notebook Coolers : A Buyers Guide
    12. Laptops are not built to withstand heavy gaming nor even prolonged  viewing of videos (regardless of the
             Entertainment title). Both of these things often lead to shorten the life of your notebook / netbook.
    13. If you are buying a new computer, check:
             - reviews on the Internet;
             - HP forums for complaints about a particular model and overheating.
             Both of these recommendations may save you a lot of problems.
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

    I totally feel your pain. I too have a similar setup, a G4 running Tiger wherein I ripped my vinyl to a higher bitrate than my CD copies. I have in one of thses threads a script that was written for me that would rummage across the home network and pull down all the lower bitrate copies and move them, but I had a hard drive snafu, ran out of space and never got around to it..
    I DO think however, that you can display the bitrate of the files in the list view options within iTunes and sort the files that way, and move the duplicate files you don't want to the trash. From within iTunes.. Let me go fire up the livingroom frankenbox to check..
    Yup.. If you use the View Options you can sort through the master list in iTunes by bitrate..
    http://imageupper.com/i/?S0300010100011D1344782818223713
    Takes a bit to sort out the tracks but it's workable..
    As to joining the libraries that you've gotten them cleaned up, you need to drop all the song files into a single folder and let iTunes sort them into the default location. There is a submenu here:
    http://imageupper.com/i/?S0500010010011A1344783379227569
    http://imageupper.com/i/?S0500010010021A1344783379227569
    Good luck!
    Deb.

  • ITunes - Two Libraries by Mistake on same iMac, How to Amalgamate and Deal with Duplicates?

    I'm using iTunes 9.2.1 on a PPC iMac G5 running OS X 10.4.11.
    I have previously had lots of problems with a damaged iTunes library: https://discussions.apple.com/thread/2009146?threadID=2009146&stqc=true
    As a result of this (and I'm not sure how), all music I have added since I got it working again has been stored in a folder called "iTunes Music" (Macintosh HD:Users:Username:Desktop:iTunes Music) which appeared on the Desktop. I also have various iTunes Library files (plus .itdb and .xml files)  on the Desktop (I didn't put them there, that's just what appeared).
    All music added priror to this is in Macintosh HD:Users:Username:Music:iTunes:iTunes Music.
    Everything works in iTunes (as you would expect - it just points to the relevant folder).
    I would like to amalgamate the two iTuens Music folders and file all the music in the correct place (wherever that may be) - is there a simple way of doing this?
    Another problem I have is duplicated music - I  imported into iTunes lots (probably 20+ Gb) of duplicate albums at a higher bitrate than I previously had and deleted the existing lower-bitrate version from iTunes. Unfortunately, I didn't realise that, because of the two iTunes music folders, the older version is still stored in the older folder, even though iTunes isn't using it.
    Is there a simple way to identify and remove the older lower-bitrate music from the machine without searching every single album in Spotlight?
    I've spent an awfully long time correcting and completing track names, information and artwork in iTunes so I really don't want to lose any of that in the process.
    Thanks in advance ...

    I totally feel your pain. I too have a similar setup, a G4 running Tiger wherein I ripped my vinyl to a higher bitrate than my CD copies. I have in one of thses threads a script that was written for me that would rummage across the home network and pull down all the lower bitrate copies and move them, but I had a hard drive snafu, ran out of space and never got around to it..
    I DO think however, that you can display the bitrate of the files in the list view options within iTunes and sort the files that way, and move the duplicate files you don't want to the trash. From within iTunes.. Let me go fire up the livingroom frankenbox to check..
    Yup.. If you use the View Options you can sort through the master list in iTunes by bitrate..
    http://imageupper.com/i/?S0300010100011D1344782818223713
    Takes a bit to sort out the tracks but it's workable..
    As to joining the libraries that you've gotten them cleaned up, you need to drop all the song files into a single folder and let iTunes sort them into the default location. There is a submenu here:
    http://imageupper.com/i/?S0500010010011A1344783379227569
    http://imageupper.com/i/?S0500010010021A1344783379227569
    Good luck!
    Deb.

  • Dead hard drive-how to format and startup with new disk

    I have a 9 month old non-retina MBP. I replaced the HD with an SSD when I bought it. It seems the SSD has stopped working and I need to replace it. Grrr. I do have a Time Capsule backup that I can use, but how do I install the OS on the replacement SSD? After I have the MBP running with the new SSD, I should be able to reinstall everything else from the Time Capsule backup. I have another MBP that I can use for assistance/transferring/formatting if this will be helpful. Will Apple store Genius help me to do this? I would not be surprised that any warranty coverage may have been voided when I installed the SSD. I could use the other MBP to format the new SSD before installing it.

    Your computer has got Internet Recovery. Use it to restore your backup.
    To start in Internet Recovery, hold Command, Option (Alt) and R keys while your computer is starting. Then, open Disk Utility, choose your hard disk at the top of the sidebar, go to Erase tab and erase the disk using "Mac OS Extended (Journaled)" as format.
    Finally, close Disk Utility, plug the external disk with your backup, select the option to restore a Time Machine backup and follow its steps

Maybe you are looking for

  • Infoupdate in scheduling agreement

    Dear Experts, While creating the scheduling agreement, for some items infoupdate field is showing as B and for some items infoupdate field is showing as C by default. Where can we control this? Is it at item level or at Vendor level? Please suggest.

  • How to hide extra text and icons in address bar

    I want to make the icons and extra text in the address bar go away since they do nothing for me and only take up space that I need to use to see the whole URL. Right now there's a green padlock icon on the left side with 1/4 of the space taken up by

  • Help: reconciling content on site and iweb

    a few weeks ago my hard drive crashed. my last backup was the week before and i lost the latest iweb content. in other words, the content you see on the web is more current than the site i currently have in iweb. is there a way to reconcile what is o

  • Use of AD Backup

    Hi, What is purpose of taking AD backup ? Only for restore the Objects or apart from anything ? Normally if my Domain Controller got crashed, we have an option to seize the role after seizing will do metadata cleanup and will place new domain control

  • Query Migration from 3.5 to 7.0

    Hi All, We have a upgrade done from 3.5 to 7.0. We need to migrate queries which were developed in 3.5 to 7.0. As of now, we are migrating EACH query by opening it in 7.0 and Saving it. This works fine. But we have N number of queries of diffrent pro