Cascades - Vertical alignment does not work after you add a higher container

Hi all

I am facing a problem with vertical alignment... Trying to play and to imagine a way to transfer my apps to BB10, I wanted to create a page layout and Center my components in the center of the screen. I created the necessary containers and things, it worked, but then, my baggage was obviously only in the center of the screen too.

So I decided to add a top-level container that would hold only the background. But then, my content is not centered (in the container for the child). I do not understand why and I don't know I'm missing something.

Here is the structure:

{Page}
content: container}
     
layout: {StackLayout}
}
background: Color.create ("#555555")
{Of container
layout: {StackLayout}
}
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Center / / DOES NOT WORK
            
{Of container
horizontalAlignment: HorizontalAlignment.Fill
layout: {DockLayout}
}
{Label
text: "save location".
horizontalAlignment: HorizontalAlignment.Left
verticalAlignment: VerticalAlignment.Center
textStyle {}
Base: tsd1.style
}
}
ToggleButton {}
horizontalAlignment: HorizontalAlignment.Right
}
}

Anyone have any idea on this? Is there a simple way to have centered on the content with a background full screen? I tried a lot of different ways, but none gave me the result I wanted (except setting a padding but that is not as I wanted).

Thank you

Add an empty container with spaceQuota 1 down. It will take all of the remaining space.

Container {
  layoutProperties: StackLayoutProperties {
    spaceQuota: 1
  }
}

If you want to Center controls, adds another container empty in front of them.

Also try to play with preferredWidth: Infinity / preferredHeight: Infinity and modes of different adjustment (filling or Center).

Tags: BlackBerry Developers

Similar Questions

  • Why the highlighting of text in a PDF document does not work after you save the file

    Why the highlighting of text in a PDF document does not work after you save the file

    What application you use to highlight?

  • print DigitalPersona finger scanning does not work after you install the recommended updates

    My impression of digitalpersona finger scanning does not work after you install the updates recommended on my dell Vista

    Hello

    1. do you have an error message?
    2. are you referring to the print scan hardware or software scan print that was supplied with the device?

    Method 1:
    I suggest you to update the software DigitalPersona from the link below https://www.digitalpersona.com/support/downloads/

  • my touch screen does not work after you download windows 8.je have a B305 lenovo all in one PC ideas?

    my touch screen does not work after you download windows 8.je have a B305 lenovo all in one PC ideas?

    I downloaded the former driver of windows 7 touchscreen and it worked

  • Laptop does not work after you remove the virus win32/winfixer

    Original title: win32/winfixer

    I had cleaned up my n cell phone it's a bad virus win32/winfixer and now my laptop does not work because I deleted it and also my big computer will not work right there problem downloading it says it needs to microsoft.net1.1sp1 ep, but it does not load become crazy pls help me...

    Hello

    1. what exactly happens when you start on the desktop?

    2. you get any error message?

    3. is your laptop work fine in safe mode?

    4. What are you trying to download?

    5. How are you trying to download?

    6. What is the full error message do you get?

    7. don't you make changes to the computer until the problem occurred?

    I suggest you to see link below and check if it helps.

    Method 1: How to fix a computer that does not start.

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Setup/how-to-fix-computer-that-will-not-start

    More information: Advanced Troubleshooting for General startup problems in Windows XP: http://support.microsoft.com/kb/308041

    Hope this information is useful.

  • HDMI port does not work after you refresh the computer.

    Updated my computer and now my HDMI port does not work. I can not connect my labtop to TV.

    Are you sure that the additional monitor is turned on.  Try holding down the and then press P until it is selected to extend the screens.

    If this does not work, go to your computer manufacturer's website and download and install the latest version of your graphics drivers.

  • S7-392: touchpad does not work after you connect an external mouse

    I plugged my Logitech Performance Mouse MX my S7-392 yesterday and since then the touchpad doesn't work anymore, not even when I disconnect the mouse. I used another front (wired) mouse, and there is no problem with touchpad. I tried to reinstall the driver from the Elantech touchpad, which did not help. Also started Windows in safe mode, but the touchpad still does not work. I'm on Windows 8.1. Maybe somebody has the same problem?

    Hello...

    On the top row of the keyboard, thr wil b a button with the symbol 'a helping hand on the touchpad. Locate this button (probably the 7 key). Press and hold down the FN key and then press this button. This wud help.

    Hope it works...

  • Global Script Protection activation does not work when you add '& '.

    Hi all

    To prevent crosssite scripting attacks I ticked the checkbox 'Enable Global Script Protection' in the admin CF. But it doesn't work, I mean not able to prevent the attacks by scripts.

    I followed steps

    1] I run the below URL.

    https://xyz.ABC.com/index.cfm?cardholder_number= & < script > alert (1) < /script >

    [2] fornt ultimately I got a javascript alert message as injected into the URL.

    But this alert message should not be that I activated the script protection in CF Admin. law?

    Now, I have removed '&' (https://xyz.abc.com/index.cfm?cardholder_number= < script > alert (1) < /script >) since the above URL then I wasn't getting the javascript alert message. Does that mean that protection of script will not work if we add '&' to the URL?

    I searched the neo - security.xml and its looks like below.

    < var name = "CrossSiteScriptPatterns" > < struct type = 'coldfusion.server.ConfigMap' > < var name = '& lt; \s*(object|embed|script|applet|meta)' > < String > & lt; InvalidTag < / string > < / var > < /st ruct > < / var >

    Can someone help me solve this problem.

    Abdul L Koyappayil says:

    But even when a remnant of doubt why alert message is coming when there is '&' in the URL?

    This happens with "&" because it is a symbol special "Javascript" whose purpose is to delimit - i.e. separated - value of the URL query string key-value pairs. For example, in the URL www.myDomain.com/index.cfm?a=1&b=2, the '&' defines the query string in the key-value pairs 2

    a = 1

    b = 2

    Consider the case where the URL is www.myDomain.com/index.cfm?cardholder_number=& then . The & will delimit the query string in

    cardholder_number =

    The presence of '&' implies there are 2 variables. However, there is that a single sign "=", which means there is only a pair of key / value. In addition, cardholder_number is a name for a URL variable, while is not. The browser then sends the query string next to your application

    cardholder_number = EMPTY_STRING &

    However, Coldfusion's scriptprotect feature will intervene and this to neutralize

    cardholder_number = alert (1) EMPTY_STRING &

    that is harmless. These will come into Coldfusion variables URLS

    cardholder_number = EMPTY_STRING

    EMPTY_STRING = EMPTY_STRING

    The special nature of '&' as delimiter is what drives the browser to run the script. Indeed, by default, browsers will run any Javascript you place in the query string. Running, for example

    http://www.myDomain.com/index.cfm?

    But why tell I if they ask me why javascript alert then.

    As you have seen, the

    This isn't the case here.

  • sound does not work after you reinstall

    Original title: I had to reinstall xp on my computer after doing so, I can not speaker working

    can anyone help, I can't get my speaker to work after reinstalling Windows xp, because they don't have any softwear with them

    Perhaps, you resorted to reinstall windows because your computer has become unstable because of a faulty hardware, such as a system driver or faulty hardware under sound.

    in all cases, you should try to re - install all software and hardware drivers on your computer directly from its place of origin.

    In addition, it is unclear if you do or you don't have a card its pci added to your motherboard at the moment.   But if you do, then you will need to re - install the software and drivers of its place of origin.

  • Internet Explorer does not work after you install the kb2761451 update

    Original title: I downloaded the update and now Internet security security update kb2761451 explore does not open.  So I deleted it and Explorer opens.  This update is listed as important.  What should I do?

    The Explorer is 9.

    Hello

    Thanks for posting the question in the Microsoft Community!

    Internet Explorer stops working after the update kb2761451 is installed.

    The problem may occur if the updated components are corrupted.

    I suggest you follow the steps mentioned below:

    Method 1: Of reset Windows Update components

     

    See the site:

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

    Warning: this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-the-registry

    Method 2: run the Update of the system analysis tool

    See the site:

    System update scan tool corrects errors of Windows Update in Windows 8, Windows 7, Windows Vista, Windows Server 2008 R2 and Windows Server 2008

    http://support.Microsoft.com/kb/947821

    I hope this helps. If the problem persists, let know us and we would be happy to help you.

  • Internet does not work after you set up parental controls.

    I just create a new account and set up parental controls for it. Before I did the internet worked, but after you have configured parental controls, internet would not just work for my desktop which has a direct line.  I have a router and even after, the wifi signal and internet would always work however my line connection direct wouldn t.  I continued doing to solve the problem and start system restore, but every time I tried to set up the account with the internet parental control just doesn't work.

    Thanks in advance.


    Hello

    Maybe there's a settings problem.

    See this and the 'related links '.

    How to install and use Parental controls in Vista
    http://www.Vistax64.com/tutorials/95139-parental-controls-Setup-use.html

    and these:

    Setting up Windows Vista's Parental control
    http://www.bleepingcomputer.com/tutorials/tutorial139.html

    Set up Parental controls
    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-parental-controls

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Re: Portege R500: controller button does not work after you install the update

    After you have installed the latest version of Toshiba Value added Package, the two buttons (toshiba assist, and backlight power) do not work properly: they open instead a window of Firefox.

    I guess there is something to configure in the section "Optimizing" Toshiba Assist.
    When I open the program "Toshiba buttons functions" (sorry for the puny, Spanish translation, it is called: "functions of Toshiba botones") all entries are empty and I have to enter the Url of the program supposed to turn off the backlight of the screen of my LCD...
    I have no idea where to find this executable.

    Can someone help me?

    Why you n t use the OS restore option?
    The operating system supports the option of system restore and this helps to put the system in the previous point.

    Check, maybe it helps to get the old version of the Toshiba Package Value added.

  • Windows Update does not work after you reinstall Windows XP SP3, get error: "the site has encountered a problem and cannot display the page you are trying to view.

    Original title: cannot run Windows Update

    I just reinstall my Windows XP and SP3, but I can't run Windows Update and gives me the following error message:

    The website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem.

    For self-help options:

    To support options:

    Can someone help me please?  Thank you.

    I just reinstall my Windows XP and SP3, but I can't run Windows Update and gives me the following error message:

    The website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem.

    For self-help options:

    To support options:

    Can someone help me please?  Thank you.

    [1] select start > run > wuaucpl.cpl > disable automatic updates > apply (if the setting is changed) > OK

    To disable the horse notification that appears in the status bar on automatic updates is turned off.

    Go to start > Control Panel > Security Center > resources > change the way Security Center alerts me > uncheck automatic updates

    [2] manually download the full install for IE8 exe and install IE8 and refuses to download updates at the time of the installation of IE8

    http://www.Microsoft.com/en-us/download/Internet-Explorer-8-details.aspx

    [3] manually download and install the latest cumulative security for IE8 update and restart the computer before

    visit windows update via the shortened link in your Start menu.

    When you have Win XP SP3 and IE8, it will be the necessary file recommend you download and save the file in the folder, and then double-click on and run the executable file from there.

    http://download.Microsoft.com/download/1/9/A/19A6AC47-9EA0-455F-B918-A44D25B5304C/IE8-WindowsXP-KB2898785-x86-enu.exe

    Restart after installing IE8 cumulative security update.  It should restart when installation is complete.

    [4] now to connect to windows update manually through your browser using the shortcut in the start menu link.  Ignore the warnings, recommendations to turn on automatic updates.

    Report back please on the status and please report problems with error codes. Thank you.

    Recommend you not install MSE but rather install a free antivirus like Avast or AVG.

    Recommend also you do not install Windows Search 4.0 these programs not to live pleasantly on most XP machines and cause CPU excessive loading unpredictable and inconveniently sometimes interfering with the usual ability to XP if not to multitask without problems.  Also recommend you only install Firefox is a browser much better than IE8 that will not work even at many Web sites.

  • Product key does not work after you have reinstalled WINDOWS 7 HP x 86. (WIN 7 UPGRADE SOFTWARE, BEST BUY)

    I have win 7 Home premium x 86 update software and just did a full format of the hard drive, first install xp, then updated with disc for win 7, why don't my activation key doesn't work and how to operate?

    Your key has already been activated once it is why you have the activation number. Easy fix, just activate by phone.

    How to activate Windows 7 or Vista manually (activate by phone)
    http://support.Microsoft.com/kb/950929/en-us

    1) click Start and in the search for box type: slui.exe 4
    (2) press the ENTER"" key.
    (3) select your "country" in the list.
    (4) choose the option "activate phone".
    (5) stay on the phone * do not select/press any option * and wait for a person to help you.
    (6) explain your problem clearly to the support person.
    (7) the person must give you a confirmation ID, copy it down on paper,
    (8) check that the ID is correct in reading the support person.
    (9) to enter the ID number, then click 'Next' to complete the activation process.

    Activation and registration of a Microsoft product
    http://support.Microsoft.com/?kbid=326851
    Windows activation: (888) 571-2048
    (888) 725-1047 or 800-936-5700

    ----------------------------  Alternatives -------------------------------------

    To enable the use of the phone

    1. open Activation of Windows by clicking on the Start button, right click on computer, clicking Properties.
    then by clicking on activate Windows now. ?

    2. click on show me other ways to activate.

    3 type your Windows 7 product key, and then click Next.

    4. click on use the automated telephone and then click Next.
    If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    5. click on the location nearest you from the drop-down list, and then click Next.

    6. call one of the available phone numbers listed. An automated system will guide you through the activation process.

    7. When prompted, enter the installation ID that is listed on your screen in your phone keypad.

    8 Note the confirmation ID the phone system gives you.

    9. under the terms of step 3, type the confirmation ID in the space provided, click Next, and then follow the instructions.

    10. If the activation is not successful, stay on the line to be transferred to a product activation agent who can help you.

    How to contact a Microsoft Product Activation Center by phone
    http://support.Microsoft.com/kb/950929

    Microsoft Activation centers worldwide telephone numbers:
    http://www.Microsoft.com/licensing/existing-customers/activation-centers.aspx
    (This site is for activating Volume License, but if you call, they will help you)

    The phone number is not working:
    Microsoft Wordwide contacts: http://www.microsoft.com/worldwide/default.aspx

    Register Windows 7
    http://Windows.Microsoft.com/en-us/Windows7/help/register
    Register Windows 7 and you automatically receive a series of three welcome to Windows e-mails
    filled with tips, creative tips and other information to you help get the most out of Windows 7.
    You also get a subscription to the monthly newsletter of Windows Explorer,
    where you will find other tips and tricks, as well as special offers.

    Learn about Activation:
    http://TechNet.Microsoft.com/en-us/library/ff793423.aspx

    J W Stuart: http://www.pagestart.com

  • Camera does not work after you reduce the screen brightness

    Hello

    I have an application that uses the camera in QML. It works fine, but if the screen fades while my application is open the camera no longer until I restart the application.

    Here is the page of qml any camera:

    import bb.cascades 1.0
    import bb.cascades.multimedia 1.0
    
    /**
     * Most of this code was copied from:
     * https://developer.blackberry.com/cascades/documentation/design/camera/taking_a_photo_with_the_front_...
     */
    
    Page {
        property string pictureLocation: ""
        function closeCamera() {
            createReportNavigationPane.cameraClosed(pictureLocation)
            pictureLocation = "";
            saveID.enabled = false;
            sheetCamera.close();
        }
        titleBar: TitleBar {
            acceptAction: ActionItem {
                title: qsTr("Save")
                id: saveID
                enabled: false
                //title: "Save"
                onTriggered: {
                    closeCamera();
                }
            }
    
            // The 'Cancel' action
            dismissAction: ActionItem {
                title: "Cancel"
                onTriggered: {
                    pictureLocation = "";
                    closeCamera();
                }
            }
        }
        onCreationCompleted: {
            // Check to see if any cameras are currently accessible.
            if (camera.allCamerasAccessible) {
                // Open the rear camera.
                camera.open(CameraUnit.Rear);
                camera.isOpen = true
            }
        }
        Container {
            layout: DockLayout {
            }
    
            // The Camera object.
            Camera {
                id: camera
                preferredWidth: 768
                preferredHeight: 1280
                objectName: "camera"
                property bool photoBeingTaken
                property bool isOpen: false
                onTouch: {
                    if (event.isDown()) {
                        if (photoBeingTaken == false) {
    
                            // Take a photo, and automatically
                            // save it to the file system.
                            camera.capturePhoto();
                        }
                    }
                }
    
                // The following are examples of slots that can
                // be used with the Camera object to handle
                // the various signals that are emitted.
                onCameraOpened: {
                    // Once the camera is open, start the viewfinder.
                    camera.startViewfinder();
                }
                onCameraOpenFailed: {
                    console.debug("Camera cannot open");
                }
                onViewfinderStarted: {
                    console.debug("Viewfinder has been started");
                    photoBeingTaken = false;
                }
                onViewfinderStartFailed: {
                    console.debug("Viewfinder could not be started");
                }
                onPhotoCaptureFailed: {
                    console.debug("Photo could not be taken");
                    photoBeingTaken = false;
                }
                onPhotoSaveFailed: {
                    console.debug("Photo could not be saved");
                    photoBeingTaken = false;
                }
                onPhotoSaved: {
                    saveID.enabled = true;
                    photoBeingTaken = true;
                    console.debug("Photo has been successfully saved");
                    photoBeingTaken = false;
                    console.log(fileName);
                    pictureLocation = fileName;
                    var imageName = pictureLocation.substring(pictureLocation.lastIndexOf("/") + 1);
                    var imagePath = "/accounts/1000/shared/camera/" + imageName;
                    cameraPreview.imageSource = app.getCameraPreview(imageName, imagePath);
                }
            }
            Container {
                layout: StackLayout {
                }
                leftPadding: 10.0
                topPadding: 10.0
                Container {
                    preferredHeight: 200
                    preferredWidth: 200
                    horizontalAlignment: HorizontalAlignment.Left
                    Container {
                        verticalAlignment: VerticalAlignment.Center
                        ImageView {
                            id: cameraPreview
                            verticalAlignment: VerticalAlignment.Fill
                            horizontalAlignment: HorizontalAlignment.Fill
                            scalingMethod: ScalingMethod.Fill
                        }
                    }
                }
            }
        }
    }
    

    Thank you

    Gerry

    so, there is a signal of cameraResourceReleased which you can listen to that will tell you that the camera has been arrested.

    After that, you can restart the viewfinder after your application is in the foreground.

    We have a corner case that we are still working on what centers around the case when the screen starts to close (causing the camera to stop), but the user he wakes up before the browser tells your application in the background.  In this case, you may not receive a leading event.  You can probably work around this case by launching a timer and check, after a second or two, if the application has been deleted original or not... If it is still in the foreground, then you could try restart the viewfinder

    See you soon,.

    Sean

Maybe you are looking for

  • where the list book mark with the star icon

    The list of bookmarks with a star that normally appears on the right side does not appear. Where is he

  • Satellite A300-146 - cannot play games with graphics

    I have Toshiba Satellite A300-146, model No.: PSAJ0E, 1 GB of RAM, Intel Dual core 1.87 processor, chipset Mobile Intel (r) 965 family. I can play some games like hitman silent of assasin on fullscreen and with graphics. But the problem is that a gam

  • When it will be in VENEZUELA?

    When it will be in VENEZUELA?

  • Report of database growth

    Hello We have a mixture of Oracle and SQL Server databases, and we bought Toad DBA suite last year. Asked me to provide monthly trend reports, capacity database and appear a growth. Can anyone tell if this information can be obtained using Toad DBA s

  • e-mail folders with lots of photos

    I used photobucket with Windows XP in the past and has been able to large numbers of pictures in a single e-mail by e-mail.  I now works on Windows Vista and unable to download "photobuckets bulkloader.  I have 1 file large photo with 4 small contain