Why does it: resize containers

Some containers resize to accommodate different sized content and some do not.  For example, a canvas in a panel will get larger if the content gets larger (due to a larger font).  But at other times it doesn't.
Can anyone please explain what will get larger and what won't?  Especially what conditions need to be achieved.
This is important because my input form does get larger as I would want it to.  But the result state where the calcualtions are displayed doesn't.  The text displays partly and then puts in an elipse.  If you hover over the text, the tool tip is displayed, but that is useless as the reason a person increased the font is because they can't read small stuff and the tool tip is always VERY small.

if your components are inside another component and the parent component has a fixed size eg height = "100" the child container will only grow to the size of the parent container even if its height is set to percentage, eg height = "100%". Then depending on the compoent, it should provide a scroll bar.
I take it as good practice to set the size of each component.
also, height and width as a percentage can only be set in mxml, it won't accept that as a valid argument in actionscript. setting the sizes in mxml are bindable though, so it will detect changes and size as the interior components call their change event. i think you have to manually detect binding if you set size in actionscript.

Similar Messages

  • Why does Flash resize images coppied from Photoshop?

    Hi Everyone,
    I have images in photoshop that are exactly 700 X 298 pixels.
    However, when I copy and paste them into Flash, Flash actually
    changes the dimmensions to 700.1 X 297.6.
    I don't understand. I have all my Flash compression set to
    100% and best, 32 Bit, etc. Do you know why this happening?
    Thanks :)
    John Bruso
    Web Designer
    Sheridan College

    copy and paste is never the best option between programs -
    try File > Import. What's the dpi?
    Chris Georgenes
    Animator
    http://www.mudbubble.com
    http://www.keyframer.com
    Adobe Community Expert
    *\^^/*
    (OO)
    <---->
    jbrusosheridan wrote:
    > Hi Everyone,
    >
    > I have images in photoshop that are exactly 700 X 298
    pixels. However, when I
    > copy and paste them into Flash, Flash actually changes
    the dimmensions to 700.1
    > X 297.6.
    >
    > I don't understand. I have all my Flash compression set
    to 100% and best, 32
    > Bit, etc. Do you know why this happening?
    >
    > Thanks :)
    >
    > John Bruso
    > Web Designer
    > Sheridan College
    >
    >

  • Variation on a theme - Why does Robohelp resize gifs when import from mif?

    This is a variation of other threads, in my case we still have
    an old RoboHelp (2003) because it still works. One weakness was our
    documents have many screen shots (96ppi in gif) and they were converted to
    jpeg and sized too small to be legible. We resolved this by writing a perl script that
    swapped back the original gifs and updated the references in the html to point to the gif files.
    For many years it worked, customer very happy, as in attachment.
    Now with Robohelp8 (have demo), the figures are staying as gif, and yet they are still being
    downsized. I've read other forums, but need to know the exact steps for what to do when I import,
    since I have many screenshots and could not tweak each figure to make it the real pixel size.
    (and yet when double-click the image it shows the figure clearly, see other attachment.
    There are a lot of other issues, but this is a good start, thanks.

    Hi,
    It seems to me that you quickly need to reset the size of all the images in your project. Luckily, Chashnikov has written a script to do this for you. See http://forums.adobe.com/thread/466933.
    Hope that helps.
    Greet,
    Willam

  • Why does my folders resize back to a small 6x4" window when reopening?

    When i re-open a folder like 'Documents', why does it resize itself back to a small 6x4" window.  Can someone educate me how to get it to memorise the window to open the size it was closed?
    Many thanks.

    I suspect you may be a recent convert from MS Windows, if so  you are used to the way Windows works which is different from OS X. Howerver you can download a utility that should help if you prefer the MS Windows method. It's called RightZoom and is available from www.macupdate.com

  • Why does FireFox open as a very small box in the top l/h corner and i have to resize it every time

    Why does FireFox open as a very small box in the top l/h corner and i have to resize it every time this only occurs on the initial opening up of F/Fx after boot-up

    Open the system menu via Alt+Space and see if you can resize that window.<br />
    If that works then close Firefox (File > Exit/Quit) to save that setting.
    See also:
    * http://kb.mozillazine.org/Resizing_oversize_window
    If the above didn't help then see:
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?

    Why does Preview automatically resize the text box to cut off the last character of added text? How do I fix it?
    I use the Tools > Annotate > Add Text feature, and when I click away after adding text, it automatically changes the text box size such that the last letter -- or last word -- gets bumped off into an invisible line below it, forcing me to manually adjust every single text box. It is highly annoying when trying to complete PDF forms (e.g. job applications).
    It appears to be a glitch, quite honestly, an error resulting from Apple's product design. Has it been fixed in the new operating system (for which they want $30)?
    I would very much appreciate any help you can provide! Thank you for your time.

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Why does my iPhone randomly resize images?

    Suddenly I'll have a string of photos that are only 640x480. The only thing I've down is download all of my images via Image Capture but it's random and does not resize all of them. Then I try to redownload them only to find they are small on my iphone too. I only use the apple camera to take these photos and they have not been sent, edited, or opened with any other app.
    I have an iPhone 4s but this has happened on my older phones as well.

    It could be that someone is using FaceTime to call you!  Open the phone application, click on "Recents" on the bottom, and see if that's the case.

  • Why does mail insist to "organize by conversation"? I uncheck it and a few days later it is checked.

    I don't want my mail sorted by conversation yet I have to uncheck the choice every few days.... why does apple insist that you organize by conversation?  I hate it. 

    Unfortunately, something is just not right even though I pretty much always keep my Macs in good health. When I move that folder (~/Library/Containers/com.apple.mail) and let it create a new one, Mail stops remembering ANY preferences. I can move and resize my windows and change my Prefs, but when I quit and relaunch Mail it goes back to some default state with none of my changes honored. Furthermore, when I search for the string "DisplayInThreadedMode" with BBEdit within that folder and all its subfolders, nothing is found.
    Maybe it has to do with how many things I disable on the recent OS X versions. I routinely disable Spotlight, Notification Center, Dashboard, Auto-Save & Versions, Gatekeeper, Automatic App Termination.... you know, all that stuff that I never asked for and don't need/want ;-)
    Maybe I could try re-enabling Auto-Save or something. Still, no other apps ever seem to behave strangely when I set all these "hidden preferences" to disable these unwanted OS features. Who knows, maybe the Mail team (programmers) just started assuming something was available which they didn't used to assume in 10.8.

  • Node Container that does not resize with Window Resize Event

    Hello,
    I'm not new to Java but I am new to JavaFX.
    I plan to have a container/Canvas with multiple shapes (Lines, Text, Rectangle etc) in it. This Container can be X times in the Szene with different Text Shapes. I need to Zoom and Pan (maybe rotation) the whole Szene and the Containers/Canvas.
    So I was playing around with that but I have two issues.
    1) all Canvas classes that I found (like Pane for example) do resize with the main window resize event. The content of the canvas isn't centered any more.
    2) I added a couple of Rectangles to the canvas and both the rectangles and the canvas have a mouse listener which will rotate the item/canvas. Problem is, that even if I click the rectangle also the underlaying canvas is rotated...I think I need some kind of Z-Info to find out what was clicked.
    Here is the little example program, it makes no produktiv sense but it demonstrates my problem.
    Does anybody has a tip what canvas class would fit and does not resize with the main window and how to figure out what was clicked?
    public class Test extends Application
         Scene mainScene;
         Group root;
         public static void main(String[] args)
            launch(args);
        @Override
        public void init()
            root = new Group();
            int x = 0;
            int y = -100;
            for(int i = 0; i < 5; i++)
                 x = 0;
                 y = y + 100;
                 for (int j = 0; j < 5; j++)
                      final Rectangle rect = new Rectangle(x, y, 30 , 30);
                       final RotateTransition rotateTransition = RotateTransitionBuilder.create()
                             .node(rect)
                             .duration(Duration.seconds(4))
                             .fromAngle(0)
                             .toAngle(720)
                             .cycleCount(Timeline.INDEFINITE)
                             .autoReverse(true)
                             .build();
                     rect.setOnMouseClicked(new EventHandler<MouseEvent>()
                          public void handle(MouseEvent me)
                               if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
                                    rotateTransition.setToAngle(0);
                                    rotateTransition.stop();
                                    rect.setFill(Color.BLACK);
                                    rect.setScaleX(1.0);
                                    rect.setScaleY(1.0);
                               else
                                    rect.setFill(Color.AQUAMARINE);
                                    rect.setScaleX(2.0);
                                    rect.setScaleY(2.0);
                                    rotateTransition.play();
                      root.getChildren().add(rect);
                      x = x + 100;
        public void start(Stage primaryStage)
             final Pane pane = new Pane();
             pane.setStyle("-fx-background-color: #CCFF99");
             pane.setOnScroll(new EventHandler<ScrollEvent>()
                   @Override
                   public void handle(ScrollEvent se)
                        if(se.getDeltaY() > 0)
                             pane.setScaleX(pane.getScaleX() + 0.01);
                             pane.setScaleY(pane.getScaleY() + 0.01);
                        else
                             pane.setScaleX(pane.getScaleX() - 0.01);
                             pane.setScaleY(pane.getScaleY() - 0.01);
             pane.getChildren().addAll(root);
             pane.setOnMouseClicked(new EventHandler<MouseEvent>(){
                   @Override
                   public void handle(MouseEvent event)
                        System.out.println(event.getButton());
                        if(event.getButton().equals(MouseButton.PRIMARY))
                             System.out.println("primary button");
                             final RotateTransition rotateTransition2 = RotateTransitionBuilder.create()
                                  .node(pane)
                                  .duration(Duration.seconds(10))
                                  .fromAngle(0)
                                  .toAngle(360)
                                  .cycleCount(Timeline.INDEFINITE)
                                  .autoReverse(false)
                                  .build();
                             rotateTransition2.play();
             mainScene = new Scene(pane, 400, 400);
             primaryStage.setScene(mainScene);
            primaryStage.show();
    }Edited by: 953596 on 19.08.2012 12:03

    To answer my own Question, it depends how you add childs.
    It seems that the "master Container", the one added to the Scene will allways resize with the window. To avoid that you can add a container to the "master Container" and tell it to be
    pane.setPrefSize(<child>.getWidth(), <child>.getHeight());
    pane.setMaxSize(<child>.getWidth(), <child>.getHeight());
    root.getChildren().add(pane);and it will stay the size even if the window is resized.
    Here is the modified code. Zooming and panning is working, zomming to window size is not right now. I'll work on that.
    import javafx.animation.Animation;
    import javafx.animation.ParallelTransition;
    import javafx.animation.ParallelTransitionBuilder;
    import javafx.animation.RotateTransition;
    import javafx.animation.RotateTransitionBuilder;
    import javafx.animation.ScaleTransitionBuilder;
    import javafx.animation.Timeline;
    import javafx.animation.TranslateTransitionBuilder;
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.geometry.Point2D;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseButton;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.input.ScrollEvent;
    import javafx.scene.layout.Pane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    import javafx.util.Duration;
    public class Test extends Application
         Stage primStage;
        Scene mainScene;
         Group root;
         Pane masterPane;
         Point2D dragAnchor;
         double initX;
        double initY;
         public static void main(String[] args)
            launch(args);
        @Override
        public void init()
            root = new Group();
            final Pane pane = new Pane();
            pane.setStyle("-fx-background-color: #CCFF99");
            pane.setOnScroll(new EventHandler<ScrollEvent>()
                @Override
                public void handle(ScrollEvent se)
                    if(se.getDeltaY() > 0)
                        pane.setScaleX(pane.getScaleX() + pane.getScaleX()/15);
                        pane.setScaleY(pane.getScaleY() + pane.getScaleY()/15);
                        System.out.println(pane.getScaleX() + " " + pane.getScaleY());
                    else
                        pane.setScaleX(pane.getScaleX() - pane.getScaleX()/15);
                        pane.setScaleY(pane.getScaleY() - pane.getScaleY()/15);
                        System.out.println(pane.getScaleX() + " " + pane.getScaleY());
            pane.setOnMousePressed(new EventHandler<MouseEvent>()
                public void handle(MouseEvent me)
                    initX = pane.getTranslateX();
                    initY = pane.getTranslateY();
                    dragAnchor = new Point2D(me.getSceneX(), me.getSceneY());
            pane.setOnMouseDragged(new EventHandler<MouseEvent>()
                public void handle(MouseEvent me) {
                    double dragX = me.getSceneX() - dragAnchor.getX();
                    double dragY = me.getSceneY() - dragAnchor.getY();
                    //calculate new position of the pane
                    double newXPosition = initX + dragX;
                    double newYPosition = initY + dragY;
                    //if new position do not exceeds borders of the rectangle, translate to this position
                    pane.setTranslateX(newXPosition);
                    pane.setTranslateY(newYPosition);
            int x = 0;
            int y = -100;
            for(int i = 0; i < 5; i++)
                 x = 0;
                 y = y + 100;
                 for (int j = 0; j < 5; j++)
                      final Rectangle rect = new Rectangle(x, y, 30 , 30);
                       final RotateTransition rotateTransition = RotateTransitionBuilder.create()
                             .node(rect)
                             .duration(Duration.seconds(4))
                             .fromAngle(0)
                             .toAngle(720)
                             .cycleCount(Timeline.INDEFINITE)
                             .autoReverse(true)
                             .build();
                     rect.setOnMouseClicked(new EventHandler<MouseEvent>()
                          public void handle(MouseEvent me)
                               if(rotateTransition.getStatus().equals(Animation.Status.RUNNING))
                                    rotateTransition.setToAngle(0);
                                    rotateTransition.stop();
                                    rect.setFill(Color.BLACK);
                                    rect.setScaleX(1.0);
                                    rect.setScaleY(1.0);
                               else
                                    rect.setFill(Color.AQUAMARINE);
                                    rect.setScaleX(2.0);
                                    rect.setScaleY(2.0);
                                    rotateTransition.play();
                      pane.getChildren().add(rect);
                      x = x + 100;
            pane.autosize();
            pane.setPrefSize(pane.getWidth(), pane.getHeight());
            pane.setMaxSize(pane.getWidth(), pane.getHeight());
            root.getChildren().add(pane);
            masterPane = new Pane();
            masterPane.getChildren().add(root);
            masterPane.setStyle("-fx-background-color: #AABBCC");
            masterPane.setOnMousePressed(new EventHandler<MouseEvent>()
               public void handle(MouseEvent me)
                   System.out.println(me.getButton());
                   if((MouseButton.MIDDLE).equals(me.getButton()))
                       double screenWidth  = masterPane.getWidth();
                       double screenHeight = masterPane.getHeight();
                       System.out.println("screenWidth  " + screenWidth);
                       System.out.println("screenHeight " + screenHeight);
                       System.out.println(screenHeight);
                       double scaleXIs     = pane.getScaleX();
                       double scaleYIs     = pane.getScaleY();
                       double paneWidth    = pane.getWidth()  * scaleXIs;
                       double paneHeight   = pane.getHeight() * scaleYIs;
                       double screenCalc    = screenWidth > screenHeight ? screenHeight : screenWidth;
                       double scaleOperator = screenCalc  / paneWidth;
                       double moveToX       = (screenWidth/2)  - (paneWidth/2);
                       double moveToY       = (screenHeight/2) - (paneHeight/2);
                       System.out.println("movetoX :" + moveToX);
                       System.out.println("movetoY :" + moveToY);
                       //double scaleYTo = screenHeight / paneHeight;
                       ParallelTransition parallelTransition = ParallelTransitionBuilder.create()
                               .node(pane)
                               .children(
                                   TranslateTransitionBuilder.create()
                                       .duration(Duration.seconds(2))
                                       .toX(moveToX)
                                       .toY(moveToY)
                                       .build()
                                   ScaleTransitionBuilder.create()
                                       .duration(Duration.seconds(2))
                                       .toX(scaleOperator)
                                       .toY(scaleOperator)
                                       .build()
                      .build();
                       parallelTransition.play();
        public void start(Stage primaryStage)
             primStage = primaryStage;
            mainScene = new Scene(masterPane, 430, 430);
             primaryStage.setScene(mainScene);
            primaryStage.show();
    }

  • CS3 - New features or bugs? Why does CS3 do this?

    Just moved over to CS3 and Leopard from CS2 on Tiger and Ive noticed a few annoying things which were not a problem in CS2, they are:
    When I copy and paste an artwork from one artboard to another it doesnt paste it correctly. For some strange reason it has resized one of the placed images and put it on a different part of the artwork and it has also randomly moved some of the other placed images. If I group the entire artwork first and then copy and paste it its fine but I dont want to group the entire artwork as I want all the objects and images to stay on their relevant layers. Why does this happen? Never been a problem in any previous version of Illustrator. Perhaps there is a setting or something? or a bug?
    When you save a workspace Ive noticed that the swatch palette does not remember the list view settings so you have to reset this every time you open Illustrator. a bug?
    Every time I make a PDF by using the save a post script first and then drag into Distiller method its always very large in file size and printing directly through PDF 8.0 doesnt even work at all. The file just causes the desktop printer to pause. In fact the only way I can get a PDF to work at a decent file size is by doing a save as PDF which isnt always practical. a bug?
    any ideas?

    "If you don't want to group everything, try selecting everything you want to copy and dragging it onto your new artboard (as you would in Photoshop)."
    Unfortunately this isn't really an option because I want to make use of the Paste in Front function where you can paste an artwork on the same size board in the same place each time.
    "Copy/paste: bug. (you can sort of get around it by grouping the stuff you copy)"
    This also isn't an option because I don't want to loose all my layers by grouping the entire artwork.
    This is a really bad bug, especially for anyone who works in the Packaging industry. Any ideas if Adobe are aware of it and are planning on fixing it?

  • Why does FB4 crash for no apparent reason?

    I have now been using FB 4 for a couple weeks and it has a quirk that is  beginning to bug me.
    For no aparent reason - it never does it the same way twice - but I will be working on a file, and finish doing something (could be saving the file, could be launching the app, could be dragging a new control, and suddenly it just disappears.
    When I bring up it up again, half of my controls are off the stage, which reallys screws up my states. Its like it completely resizes - and as I didn't set up a size to begin with, that is so odd.
    But the main thing is: why does it keep crashing?
    Thia

    Are you using plug-in or standalone? If plug-in and on any non-bundled distribution, adjust your settings http://blogs.adobe.com/jasonsj/2010/02/improving_compiler_performance.html.
    Could also be a JVM issue http://blogs.adobe.com/jasonsj/2010/03/flash_builder_4_snow_leopard_and_the_64-bit_problem .html.
    Otherwise, find your workspace log or crash log and post it here.
    Workspace log
    Mac: /Users/you/Documents/Adobe Flash Builder 4/.metadata/.log
    Windows: c:\users\you\Adobe Flash Builder 4/.metadata/.log
    Jason San Jose
    Software Engineer, Flash Builder

  • When I open about this mac - more info and I switch through the tabs (display,memory,storage,support,service) it lags (fps drops, animation looks choppy not smooth). Why does this happen? (over 300 gb free,same programs installed,free desk-downloads)

    When I open about this mac -> more info and I switch through the tabs (display,memory,storage,support,service) it lags (fps drops, animation looks choppy not smooth) even though all the mac (programs , interface ) works smooth . Why does this happen? (over 300 gb free,same programs installed,free desktop-downloads -no garbage there- everything neat and tidy.) Need some help. Only there it the animations goes like 2 fps and is not smooth. I do not understand why because the programs are the same so its the usage. Nothing is changed, yet i experience this little issue for a couple of days.

    OK, I'm confused. When I do About this Mac > More Info in OS10.9, I don't see any animation other than the window resizing. Is that the animation you are describing?
    Which if any of the following apply to your computer:
    1) Are you running any anti-virus/internet security applications?
    2) Are you running any "cleaning/tune-up/optimizations" applications?
    3) Any peer-to-peer or torrent downloading software?
    4) Any third-party disk backup software that came bundled with an external hard drive?
    5) Any online backup scheme other than iCloud (Carbonite; GoogleDrive; MS One Drive)?
    6) Did your financial institution ask you to install Trusteer EndPoint Protection (also known as Trusteer Rapport)?

  • Why does IOS 7 enlarge pictures for the wallpaper and then disallow you to make them smaller to fit the screen?

    Why does IOS 7 enlarge pictures for the wallpaper and then disallow you to make them smaller to fit the screen?

    Now correct me if I'm wrong but I am sure I have read that the parallax effect in iOS 7 is the main reason behind wallpapers not being able to be shrunk. However, even disabling the effect will not allow you to resize the pictures like you could in previous versions of iOS, so as Skydiver119 said, it kind of is a glitch. If you are like me, and don't regularly change your wallpaper, then it may be worth creating a photoshop document which is slightly larger than your screen resolution(400px in each direction or so) and then placing your picture to suit, before copying it your device. Obviously, this would not be ideal if you were changing your wallpaper daily or very regularly as it would be a bit of a hassle having to do this every time you wanted to change your wallpaper.
    Hope this Helps!

  • When i login to yahoo, my first click results in the spinning wheel. Could i have a virus Or why does it only happen when i login to yahoo?

    When i login to yahoo, my first click results in the spinning wheel. Could i have a virus? Or why does it only happen when i login to yahoo?

    Firefox allows to select part of a word. You can select a word with a double click and use Shift + left click to set the end of the selection, so you need to click at the end of the last word instead of in it.

  • Why does my safari browser frequently gives me a gray screen? I resetted my safari many times and it doesn't help. Also sometimes when I scroll it gives me this weird scrolling effect where everything is either upside or messed up.

    Why does my safari browser frequently gives me a gray screen? I resetted my safari many times and it doesn't help. Also sometimes when I scroll it gives me this weird scrolling effect where everything is either upside or messed up.

    This article is for startup but it might help.  http://support.apple.com/kb/ts2570

Maybe you are looking for

  • Getting javascript error while logging in EP

    Hi,    I have installed EP and after that I got the login screen. Now I logged in as "administrator" and see the 3 roles Content Administration, User Administration and System Administration    But while the screen comes there are many script error p

  • Issue with Bank details infotype,

    Dear Experts, I have an issue from the client. An employee was hired as trainee in last year on 1year trainee period. In month of March his trainee period was over and separation action was performed on same. He was hired in system as permanent emplo

  • Apple TV 2 - AirPlay not working using XP laptop

    I have an Apple TV on which I am able to stream videos, music etc from my iPhone without any issues using AirPlay. But when I try to stream video or music from my work XP laptop using iTunes, I get an error saying - *+"An error occurred while connect

  • Trying to sync my iPad 4, gets to step 4 of 7 (finding purchased items) and just stops forever!!

    I was having problems with iTunes when i plugged in my iPad as all that came up was 'iPad' i stead of the usual summary and called support and no one knew what to do. I figured put how to sync for now but now it freezes when it gets to step 4. It's h

  • Creating views in a new schema to access certain rows of tables in source schema

    Hi, Oracle 10.2.0.4 We are trying to mask certain data from some users. My suggestion is that we create a new schema view_schema on the same instance where we have source tables say in source_schema. We then create views in view_schema as below CREAT