Container padding does not

import bb.cascades 1.2
Page {
    Container {
        background: Color.LightGray
        Container {
            topPadding: 20
            leftPadding: 20
            ImageView {
                imageSource: "asset:///images/ic_logo_black.png"
                preferredWidth: DisplayInfo.width-50
                preferredHeight: (DisplayInfo.width-50)/3.71
            }
        }
        Container {

            preferredWidth: DisplayInfo.width
            leftPadding: 60
            rightPadding: 60
            preferredHeight: (DisplayInfo.height-(((DisplayInfo.width-50)/3.71)+20))-60
            layout: StackLayout {
                orientation: LayoutOrientation.BottomToTop
            }
            Container
            {
                layout: StackLayout {
                    orientation: LayoutOrientation.LeftToRight
                }
               Container {
                   layout: StackLayout {
                       orientation: LayoutOrientation.BottomToTop
                   }
                   background: Color.Black
                   preferredWidth: (DisplayInfo.width - 180)/3
                   preferredHeight: (DisplayInfo.width - 180)/3
               }
               Container {
                   leftPadding: 30.0
                   layout: StackLayout {
                       orientation: LayoutOrientation.BottomToTop
                   }
                   background: Color.Black
                   preferredWidth: (DisplayInfo.width - 180)/3
                   preferredHeight: (DisplayInfo.width - 180)/3
               }
               Container {
                   leftPadding: 30.0
                   layout: StackLayout {
                       orientation: LayoutOrientation.BottomToTop
                   }
                   background: Color.Black
                   preferredWidth: (DisplayInfo.width - 180)/3
                   preferredHeight: (DisplayInfo.width - 180)/3
               }
            }
        }
    }
}

the part in bold is not working, I would have at the bottom of page 3 side by side... containers separated by padding padding 30 30.but does not.

Why not use spaceQuotas instead (and profits) rather than all the math of this...

        Container {
            preferredHeight: 200.0
            rightPadding: 60.0
            leftPadding: 60.0
            layout: StackLayout {
                orientation: LayoutOrientation.LeftToRight
            }
            Container {
                verticalAlignment: VerticalAlignment.Fill
                leftMargin: 15.0
                rightMargin: 15.0
                background: Color.Red
                layoutProperties: StackLayoutProperties { spaceQuota: 1.0 }
            }
            Container {
                verticalAlignment: VerticalAlignment.Fill
                leftMargin: 15.0
                rightMargin: 15.0
                background: Color.Green
                layoutProperties: StackLayoutProperties { spaceQuota: 1.0 }
            }
            Container {
                verticalAlignment: VerticalAlignment.Fill
                leftMargin: 15.0
                rightMargin: 15.0
                background: Color.Blue
                layoutProperties: StackLayoutProperties { spaceQuota: 1.0 }
            }
        }

Change the values that you want to, knowing that margins will fall in to each other.

Padding apply only to what is inside the container.

[Edit] You will not need to use LayoutUpdateHandler then either it will work for any screen size and rotation.

Tags: BlackBerry Developers

Similar Questions

  • Satellite L775 - mouse pad does not work properly

    I have a laptop Toshiba Satellite L775. I run Win 7 Home Premium. My mouse pad does not work properly. I also have a Logitech Anywhere MX wireless mouse. I tried the mouse pad to work properly with the key FN and F9, but it does not work. And you really have no idea if that turns or out of the mousepad anyway, subj for another time I guess.

    What does not work, but I have to do is to go to Control Panel then mouse option load that and just scroll the tabs without changing what each time and then close and the touch pad works. But only for this session. If I have my laptop nearby, or turn it off, I have to start throughout the whole process.

    What's past and how to fix this?

    Thank you very much.

    > What's past and how to fix this?
    After reading your ad, I still don t know what is your problem.
    > My mouse pad is not working properly
    How to understand this? What does not work properly? What happen exactly when you start your laptop?

  • Satellite C50D - B - 11 X - touch pad does not work

    Hi I have a C50D - B - 11 X Satellite, I've upgraded to windows 10 and now the touch pad does not work, the cursor is located in the middle of the screen, can anyone help.

    Check if the touchpad would work after uninstalling the driver for touchpad of programs and features that you can find in the control panel...

    I'm not sure that the touchpad driver developer but the Synaptics touchpad driver or MOMENTUM... you may need to check this...

    After removing the touchpad driver, please restart the system.

  • My built in mouse pad does not work

    My built in touch pad does not work.  How can I solve this problem?

    Hi LisaGreenberg,

    I'm sorry to hear that you're having trouble with the mouse pad.

    Before you start with the troubleshooting steps, I would like to ask you a few questions.

    (1) Windows operating system you are using?

    (2) what is the brand and model of the computer?

    (3) you receive any code or an error message when you try to use the mouse pad?

    (4) have you made no changes before the show?

    Please follow the link and check if that helps.

    Mouse, touchpad and keyboard under Windows problems: http://windows.microsoft.com/nl-BE/windows/help/mouse-touchpad-and-keyboard-problems-in-windows

    Please answer we help you solve the problem as soon as possible.

  • I have a Toshiba satellite L455D laptop and the touch pad does not work

    If I plug my usb wireless mouse that works, but when I unplug it the touch pad does not work

    Have you checked to see if your laptop model has a physical button around the mouse pad that allows & turns off?  If it does not, many cell phones often have a software switch that can toggle the on & off power mouse pad.  It is usually triggered by a combination of function keys (key Fn + one of the F1 to F12 keys).

    Take a close look at the row of the top of your keyboard and see if you can find a key that has a small symbol that looks like a mouse pad.  If you find one, try pressing it in combination with your Fn key to see if your mouse pad features returns.

  • Toshiba touch pad does not

    HI.i have a Toshiba Satellite U300-113 laptop and the touch pad does not work. I tried to look for it under the mouse settings, but it is not there.it shows that the external mouse device.i visited recently and it worked then and when I came home and tried to use the touchpad, he did not. PLEASE WHAT DO I DO? the external mouse works properly, but I really prefer the built-in mouse.plus when you are carrying the laptop around for portability, it is quite difficult because I have to carry an external mouse wherever I go.

    Please, I would like to know if a solution can be found as soon as possible please?
    Please specify your guidelines so that I'll know what to do.
    Thank you.

    We hope that your touchpad device is not physically damaged in any way or has gone wrong.

    Then...

    Type device manager in the start menu search. You can also access it by right click on computer > properties and look for a link called the Device Manager on the left.

    In the device, search for 'Mice and other pointing devices' Manager and see if everything is there. Using my computer for example, I can see «Synaptics PS/2 Port Touchpad» If you see something like that, then you have a few choices.

    Right-click on it and choose:

    Update driver software - update the driver software to the latest version if found on the computer or on the internet.

    Uninstall - Uninstalls the driver entirely.

    I suggest try updating first. If this does not help then do an uninstall (it may disappear when you do this). After uninstalling, look up and you'll see a few icons. Place the cursor on them until you see the description "Check for changes on the hardware" and click on it (the icon should look like a computer with a magnifying glass). The unit should reappear, right click and reinstall the driver.

    Note: If you double-click on a device, you can see the status of the device. It should say "Device works properly."

    Note #2: Also on the Toshiba site, I can't find the drivers Toshiba Satellite U300-113 and support page. I see U300-ST3091, U300-ST3092 and U300-ST3094.

    User

  • Cannot open a session even in safe mode. Does not allow me to type in PW, synaptic pad does not...

    CANNOT CONNECT TO COMPUTER, EVEN IN SAFE MODE. IT WON'T ALLOW ME TO TYPE PASSWORD. SYNAPTIC PAD DOES NOT WORK. IT IS TURNED ON.

    ANY HELP WOULD BE APPRECIATED. I DO NOT USE THE SYSTEM RECOVERY AND REMOVE HARD DRIVE

    Thank you

    JOHN

    Hello

    1 have had any changes made to your computer before this problem?

    2. who is the manufacturer of your computer?

    3. are you able to click your user name on logon screen?

    4. the keyboard work?

    You can also consult the following link for more suggestions for this problem.

    http://www.Synaptics.com/resources/consumer-tips

    Hope this information is useful.

  • Satellite NB10T-A-101 - mouse pad does not work

    I have a touch screen for Toshiba Satellite NB10T-A-101, the touch screen works very well but I use mostly the mouse pad I find using the slider easier.

    But recently my guarded cursor freezing for a second or two and then to spend once again, but now the mouse pad seems not working with the left and right click buttons work but not the touchpad.

    I made sure the touchpad is enabled in the mouse settings, so I don't really know what to do now.
    Any suggestions would be greatly appreciated
    Thank you

    Hello

    Have Hmm you also checked the FN + F5 key combination?
    This would enable and disable the touchpad as well.

    But from my point of view, it would be possible that the touchpad module is malfunctioning.
    I m thinking about the hardware malfunction because the touchpad buttons work and just touch the touch work area module doesn't correctly.

    Usually, if the touchpad would be handicapped by any software, both; as well as the touch buttons does not work.

  • Qosmio X 870 - mouse pad does not work properly

    Hello

    My mouse pad is facing upward and I don't know why. It works when I restart the laptop, then after a few minutes, it does not at all. I checked the properties in Device Manager and it says it works properly... which is not the case. I uninstalled the driver and reinstalled. He always does.

    Not sure if this is related to some of my key of F does not not to my other thread - https://forum.toshiba.eu/showthread...ns-not-working

    A question I've had for a while (which may or may not be related) is my TOSHIBA x 64 compatible ACPI logical value and general-purpose device has a problem. On the device manager says "Windows cannot start this hardware device because its information of configuration (in the registry) is incomplete or damaged. (Code 19) ». I uninstalled and reinstalled this with driver Toshiba utility pack and it always happens with this error. I cleaned the registry several times using tuneup utilities 2013. It is probably not bound as it has been like this for a long time with no obvious side effects. But it's annoying nevertheless.

    Maybe windows 10 could save the day (I'm on the 8.1). I hope. In the meantime if anyone has any suggestions I would be very happy.

    Good, someone else who might find this is useful - it turns out that it was a hardware failure. My laptop hinge was loose, and therefore the case had to be replaced. He also replaced the mouse pad - now it works fine.

  • Mouse/mouse pad does not work on my Satellite M30X

    Hello

    I started having problems with mouse pad & mouse on a Satellite M30X. By clicking on the icons on the Desktop gives erratic results as evil etc start application and does not. The operating system has been reinstalled with a new hard drive and put BIOS up to date without success.

    Looks like maybe the motherboard has everyone seen elsewhere... and have the solution.

    At soon Scottie

    Hello

    tried with a few external mouse/keyboard? If it is not already then try and check the what happening. In both cases I suggest to contact a local for a hardwarecheckup servicepartner, because your question seems serious and cannot be resolved with software, DO-IT-YOURSELF tips or things.

    Here´s a link to find the nearest servicepartner in your country:

    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/generic_content.jsp?service=EU&ID=ASP_SUPPORT

    Would be better to let a few technicians do their work ;)
    Welcome them

  • HP 15 ab019na: clicking on the touch pad does not work

    My laptop newly purchased has just been upgraded to Windows 10. My problem is with the touch-pad. Clicking on most of the things with it (left or right) turn simply on the element, but it does not open the item. For example, the cross that appears in the top right, to a screen, to cancel this screen does not when you click on it. I have to touch it with my finger so he could work (the laptop's touch). A lot of hypertext links do not open when you click on it, but their contact works. The Start button at the bottom left does not open when you click on it, but it's when they are affected.

    Clicking is sometimes more convenient than touch, so I would if the issue is resolved.

    Hello @Gallant,

    Thank you for visiting the HP Forums! A place where you can find solutions for your problems, with the help of the community!

    I read your post on the issue of the TouchPad and wanted to help you!

    Please consult the following document and let me know how it goes:

    HP Notebook PC - using the touchpad and ClickPad (Windows 10)

    Please let me know if this information has been helpful by clicking the thumbs up below.  If this post has solved your problem, then please click accept as a Solution.

    Kind regards!

  • Installed Windows 7-bar side on the mouse pad does not

    Installed Windows 7 Pro on my S10. I noticed that the right sidebar on the mouse pad that scrolls one page up and down does not work.
    Solutions or responses to get it working back?

    Update Touch Pad Driver for your model. When you find the updated drivers, there is a listed for Windows 7 - download and run the exe.

    Surge in work.

  • Mouse pad does not work

    A few months ago my mousepad stopped working for no. (obviously there must be one) reason. I noticed it after that I started to share music with other computers on our network. At first, I thought that the red light was something to do with it, then I discovered that the little symbol underneath was a mouse pad.

    My laptop no button on it that turn the pad on and apart, and properties of the Synaptics said that it works well and is connected to the right channel.

    Hello

    Check with support of their documentaton online and drivers, system manufacturer and ask in their forum
    (if there is one) that several will have keyboard shortcuts that will turn the Touchpad on or off.

    Parameters for TouchPad located in the control panel - mouse (there may be several tabs with TouchPad entered)
    and some come with a utility that loads in the Notification area next to the clock in the bottom right.

    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touchpad - the driver tab-
    Click on update driver (it comes may not do anything like MS is far behind the drivers of certification), now right CLICK
    on the TouchPad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB. This does not prevent the touchpad from working.

    Here is the similar procedure under XP, Vista is the same, except that we need to clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    I hope this helps.
    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Citing the phone dial pad does not always

    Hi all

    I need to call phone telephone keypad with number pre-filled, however Phone::requestDialpad does not always work. If the phone application has never been used for startup of the phone, then calling Phone::requestDialpad evokes it without switching to the keypad (if so I manually go, I can see it filled with the number, I have passed to requestDialpad). When I close the phone application and call Phone::requestDialpad from within my application again, everything starts to work - phone application appears and switches on the dial pad.

    Is this a known problem or I do something wrong? I have also reviewed as part of Invocaion, but the manual is not described anything to activate keypad - only for phone calls and showing the call log. Is there a MIME type or action to show just Dial Pad with pre-populated number?

    Hello

    I've already logged a bug:

    https://www.BlackBerry.com/jira/browse/BBTEN-1747

    Related topic:

    http://supportforums.BlackBerry.com/T5/native-development/request-Dialpad-error-sometimes/m-p/260852...

    As a temporary workaround solution begins the composition directly from the app:

    bb::system::phone::Phone phone;
    phone.initiateCall("phone number");
    
  • Container color does not "showing through" background CSS?

    Hi all -

    I know that this is perhaps a fundamental question of CSS, but as I'm just now to enter the make by hand, I look closer how things work (or are not) and do not find this one.

    Here is the example:

    http://www.turnerdesign.com/testsite/

    and the css:

    http://www.turnerdesign.com/testsite/test.CSS

    I have #container as a green color, but it does not show in the space to the right of the #rightColumn.

    I think it has something to do with the floats work... uh... or something

    Any help is appreciated!

    Thank you

    Andrew

    How Murray?  I've always used car and to date have not had any problems of cross browser...  (it is true that I don't have to use it that often :-)

    PS: after having a quick read of this: http://www.w3.org/TR/CSS21/visufx.html

    I guess that in some cases, the car can cause an overflow of the box?  Whereas it is 'hidden' will not...?

Maybe you are looking for

  • Problem with P10-873 SD Slot

    I'm having a problem with the slot SD on my P10. The problem is that when I insert an SD card, it reads the card and keep reading. Then, the computer stops responding. When the computer finally answers I get an i/o device error. Any ideas how I could

  • Satellite 5200: Question on the differences of HARD drive.

    Hellomy laptop HARD drive is damaged; and I would like to buy a new one. The problem is that I don't know what model of hard disk it is. Do someone know the difference between disk PA combat * and MK *? Thank you very much...

  • 750 - qe envy: HDMI TV not detected

    My HP Envy 750-160qe does not detect my TV that is connected to the compiuter via an HDMI cable.  Any ideas on how to troublesheet the problem?  I already checked the physical connections. More info: Model No.: 750-160qeProduct #: N0X14AV #ABA Operat

  • Vista has suddenly ceased to update! Error code: 80070426

    Diagnostic report (1.9.0027.0):-----------------------------------------Validation of Windows data-->Validation status: invalid licenseValidation code: 50Validation caching Code online: n/a, hr = 0x80070426Windows product key: *-* - PB3JF - 2CX3R-8K2

  • Get the error code 10 - LSI MegaRaid SAS 9261-8i device cannot start.

    How can I solve my problem of storage controllers? Get an error message stating: LSI MegaRaid SAS 9261-8i - device may not start (code 10)