Label not resizing

When I do setText on a Label which I created empty it does not resize correctly so the whole text is not visible. What more should I do to make it resize? myLabel.invalidate() dos nothing to it.
The Label is added to a Pane which is in its turn added to another Pane which is added to an applet. Thanks for any help!

I think you should invalidate or validate the Container containing the Label.I do that:
          Container lParent = pComponent.getParent();
          lParent.invalidate();
          lParent.validate();
It also depends on which LayoutManager you are using and how big that Container is.Take a look at the result here: http://apollo.nu/~ben/sunlabel.jpg
1. The blue is a panel with borderlayout.
2. The red and green are two panels with GridLayout(10, 1)
which are added to the blue panel using:
add(BorderLayout.WEST, mLabelPanel);
add(BorderLayout.CENTER, mControlPanel);
3. The smaller panels with labels are using FlowLayout(FlowLayout.LEFT)
and added to the red and green panel using:
add(lPanel)
In any case it is the LayoutManager of the parent Container that >decides how much space the Label gets, however most LayoutManager will >ask the getPreferredSize() of the Label, which is the space needed to >show it's entire text in it's current font. java.awt.DimensionCould there be a bug in getPreferredSize() for Label in 1.1.8?
I tried the same with an empty Button for which I set the text later and for that it DOES work using getPreferredSize(), it gets the correct size with either that or my calculation.
I get the following result for getPreferredSize():
java.awt.Dimension[width=14,height=23]
using my own calculation:
FontMetrics lFontMetrics = getFontMetrics(pComponent.getFont());
Dimension lStringSize = new Dimension(lFontMetrics.stringWidth(pText), lFontMetrics.getHeight());
I get this result:
java.awt.Dimension[width=21,height=15]
See the marks in the image for 14 and 21. getPreferredSize() obviously gives too little space. The label should say "fr�n" and not "fr�".
Thanks for your time!

Similar Messages

  • Group not resizing correctly when contents are moved programmatically

    Hi there,
    My apologies in advance if this is a known issue. I searched the forums but I was unable to find a discussion about this topic. The issue we are running into is when we programmatically move the contents of a Group which is in turn enclosed within a Scroller beyond the Scroller's limits the position of the Group within the stage is incorrectly calculated. This will cause mouseEvents in the area beyond the Group's limits to be "ignored" among other problems.
    I have created an application to illustrate the problem, we are in 4.1:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application
        minWidth="955" minHeight="600"
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                private function onGroupClick(event:MouseEvent):void
                    Alert.show("It works");
                private function onButtonClick(event:MouseEvent):void
                    rect.x += 500;
                    rect.y += 500;
            ]]>
        </fx:Script>
        <s:Scroller
            width="100%" height="100%">
            <s:Group id="myGroup"
                width="100%" height="100%"
                click="onGroupClick(event)">
                <s:Rect id="rect"
                    x="0" y="0" width="10" height="10"/>
            </s:Group>
        </s:Scroller>
        <s:Button
            label="Move Rectangle"
            click="onButtonClick(event)"/>
    </s:Application>
    Steps to reproduce:
    Click anywhere in the screen - notice that an alert that reads "It works" shows up.
    Click on the "Move Rectangle" button enough times for the coordinates of the Rectangle to exceed the limits of the Scroller, hence producing scroll bars.
    Scroll all the way to the right and to the bottom.
    Click right next to the right bottom corner - notice that no alert is displayed. The reason is the Group has not resized correctly hence we are actually clicking outside the Group. Resizing your browser window for example will cause the Group to resize and events will again "work". FlexSpy will make things pretty apparent as well.
    Any pointers regarding where this bug lives in the source code or suggestions on how to fix this would be greatly appreciated, this issue is causing us a lot of pain.
    Thanks in advance!!
    ~ TheMadPenguin

    Thanks for logging this in the bugbase: https://bugs.adobe.com/jira/browse/SDK-29112. The latest comments there say:
    Reproduced in 4.0.0, 4.1.0
    Confirmed fixed in 4.5.0.19764
    A workaround for the 4.0.0 and 4.1.0 release would be to put the click handler on the Scroller instead of the viewport.
    Note: This bug seems to be fixed, but the fact that the width/height of  the Group doesn't change is still consistent (and correct).  Group has a  concept of size and content size, scrolling is enabled when the content  size is larger than the size (with Group.clipAndEnableScrolling set to  true which Scroller sets automatically).
    See this spec for more details: http://opensource.adobe.com/wiki/display/flexsdk/Spark+Viewport
    Hans has a good article here: http://hansmuller-flex.blogspot.com/
    Here's a simple example that demonstrates width does not change:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> 
         <s:Scroller width="100" height="100"> 
             <s:Group id="viewport"> 
                 <s:Rect width="100%" height="100%">
                     <s:fill><s:SolidColor color="red" /></s:fill>
                 </s:Rect>
                 <s:Button id="btn" label="out of view" y="150" click="btn.y += 50" />
             </s:Group> 
         </s:Scroller>
    </s:Application> 
    You might expect that this example should have a red background behind  the Button, but it does not.  That is because width/height of 100% on  the Rect is 100% of the width/height of the viewport, not the  contentWidth/contentHeight.
    One way of getting the behavior where the Rect expands across the whole content size would be to bind to contentHeight:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> 
         <s:Scroller width="100" height="100"> 
             <s:Group id="viewport"> 
                 <s:Rect width="100%" height="{viewport.contentHeight}">
                     <s:fill><s:SolidColor color="red" /></s:fill>
                 </s:Rect>
                 <s:Button id="btn" label="out of view" y="150" click="btn.y += 50" />
             </s:Group> 
         </s:Scroller>
    </s:Application> 
    Note: You shouldn't specify or change the size of the viewport Group  inside of a Scroller.  The Scroller component manages the size of the  Group in a specific way and if the Group has a size that conflicts with  that then you can get into a bad situation that might cause infinite  loops.  Notice in my example the viewport Group has no size set on it.
    Thanks to SDK QE for the info!
    -Heidi

  • The properties menu will not resize

    I am new to Captivate; most familiar with Lectora.   I am attempting to customize buttons using saved images; however, the properties panel will not resize prohibiting me from selecting the ‘browse’ key.  I have tried resetting the workspace, undocking the properties panel, closing the document and reopening.  I am running out of options.  Any assistance will be more than appreciated.

    Welcome,
    Sighing, the Properties panel cannot be resized beyond a certain maximum. Apparently there is some long label name somewhere, probably with your custom image buttons. Why not fill a shape with an image and use that as a button? Just a personal remark, since CP6 I never use custom image buttons anymore.
    Since you already retried resetting workspace, another workspace, here is the only workaround I know that will increase the width of that panel: drag it to the docking station at the bottom (with the Timeline) and it will resize to the width of that station. Even making it floating will not succeed in making it wider.
    Lilybiri

  • Labels not printing

    hi Friends,
    kindly guide me as i am having problem using transaction MIGO.
    when i do goods receipt in transaction, i flag the check box (Print via output control)beside the individual slip then i save it. but when i check the material documnet number created, the check box is not flagged anymore. this cause the labels not to be printed. please help. advice what configuration am i missing and what transaction should i o to set up this.
    thank so much!

    Hi Allan,
    You can maintain Output Control settings for printing  in OPK8. Please maintain the necessary settings like settings for Output Device, Spool Parameters for user.
    I think you are unable to get spool generated so you are unable to print while GR.
    Pls. try with above settings and check.
    Reward if useful.
    Regards,
    Tejas

  • Adobe Acrobat Pro 9.4.6 Sticky Note Icons are huge and can not resize

    My coworker is having a problem with the size of the Sticky Note (comments) Icon.  It is huge and we can not resize.
    When you open the icon, it takes up the whole page.  We can change the Font size, but the actual icon will not resize.
    The same document opened up from someone else, the icon views normal. We all have Adobe Acrobat Pro V9.4.6.  Any suggestions on a fix?
    Thank You.

    JimJSC,
    Your reply also helped fix a problem I had with not being able to resize sticky notes. My original display resolution meant that the resize symbols in the lower corners of the sticky note weren't accessible. In Acrobat X, the setting is under Acrobat, Preferences, Page Display, Resolution.

  • We have version 10.5.8 photoshop CS3 for Mac. How do we fix a problem with photoshop not resizing dpi? For example we resized a 72 dpi image to 200 dpi, when we do a pdf analysis it read as 344 dpi.

    We have version 10.5.8 photoshop CS3 for Mac. How do we fix a problem with photoshop not resizing dpi? For example we resized a 72 dpi image to 200 dpi, when we do a pdf analysis it read as 344 dpi.

    Sounds like it's a problem with the Acrobat settings. Did you set them to the same resolution?

  • Components will not resize correctly in Catalyst

    Download PSD: http://dl.dropbox.com/u/814249/campusariel.psd
    Download FXP: http://dl.dropbox.com/u/814249/campusariel.fxp
    I am completely new to Flash Catalyst (any and all versions). I am currently using Photoshop CS5.5 to design and Catalyst 5.5 to import and translate into a flash project. I recently picked up a job creating an interactive application for a college campus. I have attached my two project files for anyone who can help to view to see what is wrong. I have also attached inline screenies for those who cannot/will not download.
    Here is my problem: I created the attached PSD in Photoshop with what I thought were the correct layers and groups/folders. I am hoping to achieve the following effect: when a user rolls over the purple buttons, multiple similar copies of that button that are initially hidden beneath the visible one popup in sequence above the rolled over purple button.
    Ex. State 1:
    Animation/Action Sequence to the following:
    The purple popup objects will have their own text content and will be buttons themselves that a user clicks to change to a different state with more specific information.
    Not only am I unsure of how to create such animation/action sequence, my purple components (whether I actually convert them to components in Catalyst or not) will not resize correctly. NOTE: I did click the resizable option when importing the PSD into Catalyst. The following effect occurs both ways. I add constraints to all objects by selecting all, right clicking, and choosing add constraints to all; the following occurs when stretched inwards using the resize test handle:
    and this when stretched out:
    When viewed using CTRL+Enter, the application is nowhere near resized in the browser window. I must be missing something, especially being new to Catalyst. I tried flattening the image in Photoshop, which obviously allowed the image to be easily resizable in Catalyst and the test browser window. However, I cannot use my separate elements when flattened; flattening defeats the purpose of Catalyst if I'm not mistaken.
    Any guidance?
    Message was edited by: joshlev

    Hi Martin - Those are really good questions! I did check and the image is uploaded. I assume I can see the image in my one browser because of the cache  since I could not see it on several computers that I had never pulled the site up on before.
    And actually I have it working now. Nancy had a good idea to check to see if I saved it as CMYK instead of RGB. When I went to go open the file on my computer Photoshop and Fireworks had an error in opening it. They had a problem opening the one I downloaded from the ftp too. It just looks like somehow the file became corrupted! Not sure how, but that seems like what the problem was since I have a new image up there now and it's working fine again.
    Thanks for all your help!
    Liz

  • Calendar app is not viewable. The window will not resize. Can only see header of the app. Have restarted app and computer.

    This is all I can see. it will not resize the window, full screen mode shows only this as well.

    It really seems like a group policy issue, something like network security, and have you tried to re-map the drives, test the restult again.
    you should post you question in this forum
    http://social.technet.microsoft.com/Forums/en-US/home?forum=winservergen they're good at these kinds of issues.

  • 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();
    }

  • Today pane will not resize

    I've just installed TB 24.4.0, Lightening 2.6.4 and Provider for Google Calendar 0.25
    Win 8.1 64-bit (I use desktop 99.9999% of the time)
    Dell XPS 18, 8gb RAM, C: has 363 GB Free
    What is happening is on the mail tab the "today pane" always uses 1/2 the window. I can not resize it.
    https://dl.dropboxusercontent.com/u/90621425/Mail%20tab.png
    also when I'm on the Add-ons tab
    On the calendar tab it acts normal:
    https://dl.dropboxusercontent.com/u/90621425/calendar%20tab.png
    as well as the tasks tab
    you will also notice the x to close it and the "today pane" button at the bottom of TB don't display either.
    It seemed to work until I installed "Google Tasks Sync", I removed that plug-in and nothing has changed. Has anyone seen this before?
    Love the visual upgrade to this mail client, I've been using WLM 2012 forever, but its having issues with Google Play emails. Add to that its possible to have outlook.com accounts in TB and the calendar and this client is head and shoulders above.
    I'll surely donate once I can keep the today pane displayed (in a reasonable size) on the mail tab.

    * Make sure ThunderBird is closed before proceeding.
    * Locate '''localstore.rdf''' file from your TB profile folder (default Windows: ''C:\Users\{USERNAME}\AppData\Roaming\Thunderbird\Profiles\{randomletters}.default\'' ).
    * Open it in a text editor: I like [http://notepad-plus-plus.org/download Notepad++ ].
    * Find and edit the line to look like the one below: (modewidths and width; probably have crazy values)
    <RDF:Description RDF:about="chrome://messenger/content/messenger.xul#today-pane-panel"
    collapsedinmodes=","
    modewidths="200,200,200"
    width="200" />''
    * Save the file and open TB.

  • Flash paper not resizing in IE

    I am loading my flashpaper in a movie clip using the standard
    code (
    http://www.adobe.com/devnet/flashpaper/articles/import_flpaper2_03.html).
    The flashpaper is located on a different subdomain than the
    swf doing the loading, so I added
    "System.security.allowDomain([flashpaper.domain.com]);"
    The flashpaper loads, but will not resize.
    I added some debugging and it looks like the
    "getIFlashPaper()" is not able to detect the flash paper.
    Works in Firefox, but not in IE.
    I wonder is this related to the 9.0.115 relase?
    Can anyone provide any info here?
    Thanks
    M=

    Did you upload this script to your server?
    AC_RunActiveContent.js
    Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com

  • I have a problem with a table not resizing correctly in some browsers

    Hi,
    I am using the fluid grid layout in DW. I have created a table to hold some images and text. I have the table set to 100% instead of a fixed width.
    The table and images resize correctly at my smartphone breakpoint in DW and Crome. They do not resize correctly in IE10 or Firefox.
    I hope somebody can point out the error of my ways.
    Thanks
    http://cupcakemary.skeeterz71.com/_cm_mockup/menu.html

    Tables do not work well in Fluid Grid Layouts because table width is always going to be determined by combined width of the content inside it.  As such it won't re-scale past a certain point no matter what you do. I typically avoid using tables for layouts anyway.  But especially in FluidGrids.
    If you build your FluidGrid layout correctly from the start, there's little reason to use tables.
    LayoutDiv 1                 LayoutDiv 2                      LayoutDiv 3
      float:left                        float:left                            float:left
    On smaller displays, these divs will naturally stack vertically.
    LayoutDiv1
    LayoutDiv2
    LayoutDiv 3
    Nancy O.

  • Datagrid within Datagrid - Rows not resizing to fit content

    Hi,
    I have a datagrid with a custom item renderer that renders another data grid... so one column will render datagrids within the outer datagrid.  The problem is that the row does not size to fit the inner datagrid.  I can't set the rowHeight on the outer datagrid because the inner datagrids have dynamic data and i don't know how many rows they will have.  Also, after the datagrid is rendered, more rows may be added to any number of inner datagrids at a later time... and I need the rows holding them to resize accordingly.   Setting variableRowHeight=true on the outer grid doesn't seem to help either.
    Any ideas on how to do this? 
    Thanks!

    Hi, Alex, thanks for the info. It turns out, I was wrong.  The way it looked made me think it was a row-resizing problem, but it turns out that the rows were resizing fine... it was the outer datagrid itself that was not resizing properly.  Apparently it has to do with the combination of variableRowHeight and rowCount.  The jira issue may look familiar to you.
    http://bugs.adobe.com/jira/browse/SDK-13507
    Anyway, I got this from the jira comments and works pretty good...
    height="{theGrid.measureHeightOfItems(-1, theGrid.dataProvider.length + 1)}"
    I also have to call similar code when the data provider of the inner grids add/remove items.
    Thanks!

  • Web object not resizing with presentation

    I've added a web object in my elearning and published as a flash presentation.  When I resize the browser window, the flash presentation resizes, but the web object does not resize. My users will have various screen sizes, so I need the web object to display proportionally to the project size.
    I'm using a flash widget, so I cannot publish as HTML5.
    Thank you for any help or assistance.

    Hi there, unfortunately I don't have the answer but I'd like to support your question as I'm having exactly the same issue.
    Cheers,
    Dan

  • VS open website does not resize

    Using VS 2012: I resized fonts to something I can read - 12pt with a 14pt Title Bar. The open website (IIS) does not resize. The buttons are below the bottom of the page. So, I must go to personalize and resize the fonts just to open a website, and then
    set them back so I can read it.

    Hi
    DenniSys1,
    Thank you for posting in MSDN forum.
    >>I resized
    fonts to something I can read - 12pt with a 14pt Title Bar. The open website (IIS) does not resize.
    According to your description, I suggest you can go to Tools-->Options->Fonts and Colors->Select  Environment Font
    under Show settings for option-> change the font and size under the Font(bold type indicates fixed-width fonts).
    And then you open your website again, you will see the font is resized  in the open web site window.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for