Container sizing questions

* sigh *.  containers.  I hate them.

I have a few here .as files

main.as - a container that fills the entire screen.

            MainCont.flow = ContainerFlow.VERTICAL;
            MainCont.size = 100;
            MainCont.sizeUnit = SizeUnit.PERCENT;
            MainCont.setSize(stage.stageWidth, stage.stageHeight);

Object.As - a container class that goes inside of the master suite.

He did a * little * containers inside

OBJECT = new Container();
SubContainer = new Container();

// lets build the OBJECT container first
            OBJECT.margins = Vector.([5,5,5,5]);
            OBJECT.debugColor = 0xFF0000;
            OBJECT.flow = ContainerFlow.VERTICAL;
            OBJECT.padding = 5;                                                                

            // for the height and width
            var w:int = (stage.stageWidth*.65);
            var h:int = (stage.stageHeight*.65);
            OBJECT.setSize(w,h);            

            // build the bottom container

            SubContainer.margins = Vector.([3,3,3,3]);
            SubContainer.flow = ContainerFlow.VERTICAL;
            SubContainer.debugColor = 0x0000FF;
            SubContainer.padding = 3;
            SubContainer.size = 10;
            SubContainer.sizeUnit = SizeUnit.PERCENT;
            SubContainer.align = ContainerAlign.MID;
            SubContainer.containment = Containment.DOCK_BOTTOM;

And I add everything on the screen

// add components to card
// TITLE
OBJECT.addChild(SubContainer);
trace("OBJECT => OBJECT (H:" + SubContainer.height + " | W:" + SubContainer.width + ")is contained this way: " + SubContainer.containment + " ");

// add the card to main container
this.addChild(OBJECT);                                                          // add to the parrent caller
trace("OBJECT => OBJECT (H:" + OBJECT.height + " | W:" + OBJECT.width + ")is contained this way: " + OBJECT.containment + " ");

When I run the present, I see that my main container... not one that should be anchored to the bottom.

Here is the output from the console

OBJECT => SubContainer (H:0 | W:0)is contained this way: bottom
OBJECT => OBJECT (H:390 | W:665)is contained this way: contained

So, what's the problem with this void container?

Please thanks for your help!

Hey dtater,

Add this to the bottom of your application:

OBJECT.layout();MainCont.layout();

that should do the trick! Good luck!

Tags: BlackBerry Developers

Similar Questions

  • Storage container Oracle questions.

    Hello

    For the database service, I tried to create the new container in the cloud storage container. As java, database container I've seen no service console connection.

    IssueinCloudContainerCreation.PNG

    After referring the document, I create the container by using the loop, and also I have test the container to create using the loop. After you create the container I don't know how to display the container created in the cloud service (console). So, I try to create the database service using my container name that is created by using the loop. But in the storage container Cloud name filed, it calls the name.so storage container, I gave the name of the container, but it is said that the error "Oracle Cloud Storage Service container name must be in the format < storage service name > - < domain identity name > / < container name of >.» "For example, storagesvc999-usoracleaccoutrial00999/backupContainer. Now I don't know the name of storage service.

    What is the name of storage service?

    How I found?

    The above image I do ' t see any link to access the storage service. So how to get access to the service? (recently, I put the replication strategy)

    Kind regards

    Ove.


    The storage team works to expose the tank to the user interface and which should be available in the spring. In the meantime, I have an app APEX you can use, but is not 100% finished. Give me a few weeks to get it all sorted. Meanwhile, let me help you get this name of container down.

    The syntax that you noted is

    -/

    So lets build this URL with certain values of the sample. Let my domain identity name is Gumball and my tank is myBackups.

    The first part would be storage-Gumball. The second part would have me myBackups. It will be together

    Storage-Gumball/myBackups

    Go ahead and give that a try to replace in your values for the field of identity and container. If it doesn't, we can find the exact syntax required for your account.

  • Sanitation in a course with several slides contained and question slides

    My goal is to build a course that consists of 20 ~ content slides (each has a small video conference), followed by several questions each to compose a great quiz, each answer is counted toward the degree.

    So my current configuration is as follows:

    • Each slide of the Conference is followed by question slides 1-3.
    • An attempt is allowed by each question.
    • All questions must be answered correctly before a user can move to the next slide content.
    • Each conference is preceded by another slide of content and has a button 'Next' with 'Back to the Quiz' on measures of success.
    • Failure to answer a question correctly, the user is redirected to the previous slide in conference at the Review Conference. Then the user is redirected to the slide in question failed (via a button 'Next') and the next attempt to answer the question.

    I understand the scenario of reclamation and was able to set up the first slide of the Conference, followed by 3 question slides, and everything works as I want. Button 'Next' on the slide of the Conference works properly depending on where the user came to the Conference slide of.

    However, when the user finally arrives at the next Conference slide, as soon as they click on the 'Next' button on this slide, they are brought back to the last slide in question answered: in my case, it's the third question slide after the first slide of the Conference. The loop closes just here.

    Basically, there is no way for the user to pass the second slide Conference.

    Why the button 'Next' on the second slide Conference not to go to the first slide of the following question?

    What I am doing wrong?

    Thank you.

    Lyolya

    Captivate sanitation with failure - part 1 - blog of monkeylogic

    Captivate sanitation with failure part2 - monkeylogic blog

    Lilybiri, I think that the solution to my problems is very well explained in the posts above I found last night. With a few changes, I could get my course work just as I had originally planned.

    Here's what my structure/feature class now looks like in my test file:

    Title slide

    Video conference 1

    Questionnaire1 Questions (tested with 2 questions multiple choice, 3 possible answers to each)-back to the video conference 1 first incorrect answer; go to video conference 2 success OR the second incorrect answer.

    Video conference 2

    Questionnaire2 Questions (tested with 2 questions multiple choice, 3 possible answers to each)-back to the video conference 2 as soon as the first incorrect answer; go to video conference 3 success OR the second incorrect answer.

    Video conference 3

    .. and so on.

    The notation works, too!

    I'm actually very happy to have found a solution to what seemed to be an impossible feat. Thank you for your help, I appreciate the time you took to answer my questions. As a completely new Captivate user, I think that I learned a lot in the last week, thanks to your contribution, and that of many other generous people on the web.

    Thank you

    Lyolya

  • Update post sizing question

    Hi guys,.

    I've just loaded Photoshop CC for the first time since the update. It is now too big to fit on my screen;

    photoshop problem.png

    No idea how to solve this problem?

    Thank you

    Hannah

    Use the Edit menu > Preferences in the section defined interface UI scaling to 100%. You will always have the problem with the Script being translated into size dialogs there are a lot of questions in 2015 CC, you'd be better off installing CC 2014.

  • Custom Slot sizing question

    Hi all

    To change the sizing of slot HA in our environment for a custom configuration. I use Options advances of das.slotcpuinmhz and das.slotmeminmb to set custom values. However, when you select the link Advanced Runtime information slot sizing settings are not applied. In an effort to try to get the settings to be taken, I disabled and re-enabled HA without success. Other thoughts?

    Thanks in advance,

    -Jason

    Advanced options that you use only allows to put a cap on the size of the slot, do not define an absolute value. So if the max reservation + overhead of all virtual machines under voltage is lower than the value specified in the advanced option, then advanced options will not take effect. There's no value by the size of the top slot of the largest virtual machine.

    Elisha

  • containing the question

    I was having some problems with the URL when you use an external swf and loading in a swf file into a different folder.  Now, I decided to go into my main swf and do movieclips instead each different page.  I created a movieclip on my stage and given an instance.  I'm trying now contain an image gallery in this context (I'm in the movieclip to the code).  The code I use is

    var container_x:Number = this.width * 0.5;
    var container_y:Number = this.height * 0.5 + 160;
    var container:Sprite = new Sprite();
    container.x = container_x;
    container.y = container_y;
    addChild(container);
    
    var scene:Scene3D = new MovieScene3D(container);
    var cam:Camera3D = new Camera3D();
    cam.zoom = 6;
    

    However, it goes on my main stage.  I tried to do things like parent.myMovieClip and root.myMovieClip without success.  I was hoping as the key word, then that would concern the movieclip I was, but apparently not.  How would it be possible for what I do in this movieclip to stay confined inside?

    Thank you

    If you don't want the MovieScene3D out of 'the box', you must use the mask.

    (1) open the MovieClip with the inside rectangle

    (2) select the rectangle

    (3) create a MovieClip

    (4) give an instance name lets say "sceneMask".

    (5) change the code:

    var container_x:Number = this.width * 0.5;
    var container_y:Number = this.height * 0.5 + 160;
    var container:Sprite = new Sprite();
    container.x = container_x;
    container.y = container_y;
    container.mask = getChildByName("sceneMask");
    addChild(container);
    
    var scene:Scene3D = new MovieScene3D(container);
    var cam:Camera3D = new Camera3D();
    cam.zoom = 6;
    
  • List of scrolling/sizing question

    I had a lot of trouble with a list item, so I will describe it here.

    Basically, I'm doing a list that displays HTMLText.  The list is part of a NavigatorContent with a vertical layout, and he could get resized vertically or horizontally at any time.  I'm having a ton of problems - sometimes the scroll bars only scroll to reveal some content and resizing causes all sorts of problems.  Here's my implementation currently:

    <!--Inside a NavigatorContent with a vertical layout-->

         <s:List id="dirList" width="100%" height="{container.height-dirList.y}" change="dirListChange(event)" itemRollOver="rollOver(event)"  itemRenderer="DirectionsListRenderer" alternatingItemColors="[0xffffff,0xf9f6ff]"/>

    My item converter is fairly simple:

    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx"
                    autoDrawBackground="true">
        <mx:Text width="90%" htmlText="{data.descriptionHtml}"  />

    </s:ItemRenderer>

    I tried to play with different properties does not.  Any help would be appreciated.

    Try to set the width = '100% ' on the rendering engine as well

  • Usable disk HDS sizing question

    Hi guys,.

    I had a sales guys tell me:

    Rates based on 30% R10 / 80% R5-9.

    of course, you can not 30/80 so I assume he meant 30/70, which seems to the average

    I have trouble understanding how the usable figure below is happened?

    1.9 CT MRI SSD

    24 (23 usable) disc

    ARE OPS / s 93 794

    32 GB usable 038

    My calculations which I assume are incorrect:

    23 usable readers would give 43.7 TB @30/70 RAW read/write

    30/70

    RAID 10 and RAID 5-9

    43.7 x0.3 = 13.11 GROSS TB would be used for the entries

    13.11/2 = 6.55 TB usable RAID 10

    43, 7 - 13.11 is 30,59 left TB RAW

    30.59x0.89 = usable RAID 5-9 27.2251

    6.55 + 27.2251 = 33.784 useful to

    30/70

    RAID 10 and RAID 5-5

    43.7 x0.3 = 13.11 GROSS TB would be used for the entries

    13.11/2 = 6.55 TB usable RAID 10

    43, 7 - 13.11 is 30,59 left TB RAW

    30.59x0.8 = TB 24,472 usable RAID 5-5

    6.55 + 24.472 = 31,022 useful to

    What Miss me?

    See you soon

    Marketing vs real usable by road numbers likely...

    A 1.92 TB drive you nets 1788,14 GB of usable by disk space. Who will most likely spend your numbers down close what has been provided to you.

  • Sizing questions. pixels and inches

    Hi guys. I am new to adobe but loving the journey. Im trying to make a banner in photoshop for my muse site. I need to be 10 "X 3.75" on the screen with a rule. " When I do the banner in photoshop, it is important that size huge in muse. I'm doing something wrong? How to do a project of this size in inches and export these real inches? hope that makes sense. Thanks for reading guys and any input!

    Click on this banner in Muse, open the window > Panel active and you'll have this image/object highlighted. Something is probably already placed since you use the template. Right-click on the image and you have several options available including the folder with this asset or original edition. This is how you can retrieve information about the dimensions that are used by the model developers.

    And incidentally, Muse is able to optimize the assets so you just keep the proportions and the rest can be done automatically by the software (any huge scale of property if it seems). You can count on the capabilities of the Muse, at least from my experience.

  • sizing question

    I have created a printable in photoshop CC, but when I try to print at Shutterfly/Walgreens/etc, it tries to crop the top and bottom of the document.  I have details at the outer sides that I don't want to lose.  I have the image of size as a 5 x 7 psd, up to what I'm doing wrong?  I am an amateur in the software and the Google search everything I'll - advice would be appreciated.

    I went to Shutterfly and found this:

    It would seem that Shutterfly does not print a complete picture of 5 x 7 to the stock size. I suggest that you read their specifications and reduce the size of your image file properly.

  • SIZING QUESTION in FLUID PAGE layout GRID (READING AND I'll EXPLAIN) Please help

    I have 2 asides placed side by side each width of 50% for the layout of the content. The width works very well stay in proportion, but the height is not stay the same proportion when the size of the screen changes. I need 2 asides to stay the same size as each other across the screen of different sizes to help please

    Here is my code:

    < side class = "roofingaside" >

    < class header = "roofingheader" > ROOFING AFFORDABLE < / header >

    < ul class = "fluidList fluid roofinglist" >

    < class li = 'fluid rooginglistiteam' > ROOFING NEW < /li >

    < class li = 'fluid rooginglistiteam' > < /li > REPAIRS

    < class li = 'fluid rooginglistiteam' > WINTERIZE < /li >

    < class li = 'fluid rooginglistiteam' > SERVICES 24/7 < /li >

    < /ul >

    < / side >

    < side class = "electricalaside" >

    < class header = 'fluid electricalheader' > ELECTRIC SERVICES < / header >

    < ul class = "fluid fluidList ELECTRICALLIST" >

    < class li = 'fluid ELECTRICALLISTITEAM' > INTERIOR & EXTERIOR LIGHTING < /li >

    < class li = 'fluid ELECTRICALLISTITEAM' > outlets, SMOKE DETECTORS, DRYER CIRCUITS < /li >

    < class li = 'fluid ELECTRICALLISTITEAM' > FANS, CIRCUITS of a/c, HEATING ELECTRIC < /li >

    < class li = 'fluid ELECTRICALLISTITEAM' > CALLED SERVICES < /li >

    < /ul >

    < / side >

    Type in capital LETTERS, it's the same as shouting in the web forums.  Please do not shout out your answers.

    You have 2 choices.  Either build your site with FGLayouts and do not worry about the columns the same height.   Or re - build with a layout of fixed width in pixels.   Whatever approach you use, height is always determined by the content.  Then accept this fact and sleep well at night.

    Welcome to the web design 101

    Nancy O.

  • Resolution / sizing questions

    I know, I know... often asked and repeatedly answered... did a search but couldn't really find an answer right/s ok, let's go...

    Master work sent to me by someone else... did in CS2 Mac. I use CS3 PC.

    1 / How can I find out the default document preset resolution? And change it if necessary? The file is print quality press.

    2 / bound and then integrated images... Let's say that the file original.tif is 18 cm x 12 cm at 300 dpi. The final size of the document is 9 cm x 6 cm. Is it better to scale up to the final, real size used in PS or is it ok to let Illustrator (CS3) the scaling?

    Suggestions to use InDesign are not welcome that is not an option...

    See you soon...

    TIA

    JJ

    Jay,

    2 / so, without loss of quality?

    No loss.

    Jacob Bugge wrote

    I'm sorry.

    ?????

    Post #4 here: http://forums.adobe.com/thread/477743?tstart=30

  • Instantiate the component MXML into actionscript - percentage of sizing questions

    Hey guys,.

    I'm breaking my head trying to resolve this issue.

    I have a custom MXML component that is instantiated in actionscript, for example:

    component: CustomComponent = new CustomComponent();

    The custom component extends canvas (i.e. the root of the XML tag is a canvas). Inside of the element is another painting that encapsulates the children so that they can be arranged using the constraint-based measures (e.g. top, left, right, bottom).

    The component is then added to a VBox via addChild (component).

    That is the problem - the component does not appear on the screen. It's because this isn't a width and a height set correctly. If I bind the canvas on the inside height = "{parent.height}"and width = "{parent.width}", then it is displayed properly. " The problem is that the compiler warns me that the binding will not be able to detect changes in the size of the parent. This sux when I run mode full-screen, because it is not developed to fill the VBox (which sizes correctly).

    Is there something I'm missing here? How does the percentage based widths and heights are applied? There may be a breakdown in the flow or something.

    Thank you!!

    Oh nuts!

    It was all caused due to a substitution of updateDisplayList that wasn't call super.updateDisplayList ()!

    See for yourselves with these substitutions :) guys

  • Mail in response to error reports contains links that freeze

    When Mozilla support sends a response to my Hotmail account, it contains two links. One is "It does not solve my problem" the other is "Browse for any unresolved issue and help a Firefox user. The browser crashes in the browser every night, if I click on one of these. No other tab can be opened; the arrow may be used; the symbol of the refresh does not work; and every night can only be closed from the Task Manager. Even worse, if it is left open it disables the other applications. While Task Manager is open, if we move it, it leaves a trail of repeated copies of itself. If Quicken is closed the screen rest on the screen. Even by using CTRL + ALT + DELETE to refresh the screen and asking only open the Task Manager does not solve this problem. I am REALLY part of a beta test, or do you all just jump Alpha and give us something that looked like, it could be called a browser?

    Hello

    For now, you seem to be using the Nightly of Firefox version, it is an earlier version than Developer and two beta versions is therefore likely to contain random questions as it is still ongoing.

    I recommend that you file a bug in Bugzilla so that this can be looked into.

  • As a class of container return does not correctly

    I have a class actionscript (page.as) with a main container that contains all the components of the user interface of the page.  the issue im having is that when I do addChild (page) of the class of main project, that the container is not properly made since I can't see the color of debugging, or margins, and all the ui just componnets sit in the upper left corner of the screen.  We never seen it before and be willing to help me find a solution.

    You can view the code? Are the parent container sizing properly?

Maybe you are looking for

  • I lost all the volume on the Satellite Pro A120

    Hi all I lost all the volume on satellite pro A120As higher someone to help a novice on a pc?Control Panel active and all seems ok.Not muted. Can someone suggest a help? Concerning john157

  • Bad video memory - Satellite 5200

    I have a scrambled on display problema Toshiba Satellite 5200. The adapter isNVIDIA GeForce4 460 Go, 64 MB, integratedRAMDAC. A test of Micro-Scope shows a badvideo memory. How to solve the problem(change the video, or only video memory cardor is it

  • Extention of warranty is still possible?

    Hello My question may be stupid, but I'll ask anyway. My warranty was 1 year and I got 1 year for free. The guarantee expires in 3 months. Are there opportunities that I can extend my warranty by buying the extended warranty?Thanks in advance

  • MotoG3 - No. files see the square on my computer

    Hello. I'm trying to fix the phone of my dad at the moment which is a Motorola G3. The problem is that no files appear in my computer / computer screen. He used to work, but now it shows no file but the G3 in computer / no SD no card etc. I tested it

  • on the guarantee to operatin system

    Mr President If at all... I update to windows 8.1 have guaranteed with my windows 8. windows 8.1 hangs on... am I going to get the support of HP to warranty...