Setting Web display over the entire height of the device

Hello

Recently, I submitted one of my BlackBerry 10 applications to built for BlackBerry, but that it must be approved, I must have the webView fill the entire page. The illustration below shows the Web view covers only about half of the page because there is not enough of content to fill an entire page.

Here is the code that I use for my webView:

Container {
        layout: DockLayout {

        }
        verticalAlignment: VerticalAlignment.Fill
        horizontalAlignment: HorizontalAlignment.Fill
        background: Color.Black
        ScrollView {
            id: scrollView1
            scrollViewProperties.pinchToZoomEnabled: true
            scrollViewProperties.scrollMode: ScrollMode.Vertical
            verticalAlignment: VerticalAlignment.Fill
            horizontalAlignment: HorizontalAlignment.Fill
            Container {
                layout: StackLayout {
                    orientation: LayoutOrientation.TopToBottom
                }
                verticalAlignment: VerticalAlignment.Fill
                horizontalAlignment: HorizontalAlignment.Fill
                background: Color.Black
                WebView {
                    id: webView1
                    onLoadingChanged: {
                        if (loadRequest.status == WebLoadStatus.Started) {

                        } else if (loadRequest.status == WebLoadStatus.Succeeded) {
                            webLoading.stop()
                        } else if (loadRequest.status == WebLoadStatus.Failed) {

                        }
                    }
                    // WebView settings, initial scaling and width used by the WebView when displaying its content.
                    settings.viewport: {
                        "width": "device-width",
                        "initial-scale": 1.0
                    }
                    onMinContentScaleChanged: {
                        // Update the scroll view properties to match the content scale
                        // given by the WebView.
                        scrollView1.scrollViewProperties.minContentScale = minContentScale;

                        // Let's show the entire page to start with.
                        scrollView1.zoomToPoint(0, 0, minContentScale, ScrollAnimation.None)
                    }

                    onMaxContentScaleChanged: {
                        // Update the scroll view properties to match the content scale
                        // given by the WebView.
                        scrollView1.scrollViewProperties.maxContentScale = maxContentScale;
                    }
                    verticalAlignment: VerticalAlignment.Fill
                    horizontalAlignment: HorizontalAlignment.Fill
                }
                Divider {
                    id: infoTextDivider
                    visible: false

                }
                Container {
                    visible: false
                    id: infoTextContainer

                    verticalAlignment: VerticalAlignment.Center
                    horizontalAlignment: HorizontalAlignment.Center
                    Label {
                        multiline: true
                        id: infoText
                        textStyle.textAlign: TextAlign.Center
                    }
                }
            }
        }
        Container {
            id: loadMask
            background: Color.Black
            layout: DockLayout {

            }
            verticalAlignment: VerticalAlignment.Fill
            horizontalAlignment: HorizontalAlignment.Fill
            Container {
                leftPadding: 10.0
                rightPadding: 10.0
                topPadding: 10.0
                bottomPadding: 10.0
                horizontalAlignment: HorizontalAlignment.Center
                verticalAlignment: VerticalAlignment.Center
                ActivityIndicator {
                    id: webLoading
                    preferredHeight: 200.0
                    preferredWidth: 200.0
                    horizontalAlignment: HorizontalAlignment.Center
                    onStarted: {
                        loadMask.setVisible(true)
                    }
                    onStopping: {
                        loadMask.setVisible(false)
                    }
                }
                Label {
                    text: "Loading " + titleBar.title + "..."
                    horizontalAlignment: HorizontalAlignment.Center
                    textStyle.fontSize: FontSize.Large
                    textStyle.fontWeight: FontWeight.W100
                    textStyle.color: Color.White
                }
            }
        }
    }

If any help with what I need to add in order to show Web to fill the entire page would be great!

Thanks in advance

Web layout:

set:

preferredHeight: 1280
preferredWidth: 768
maxHieght: 1280
maxWidth: 768
minHeight: 720
minWidth: 720

Tags: BlackBerry Developers

Similar Questions

  • dynamically setting lines displayed in the advanced table

    Hello

    I want to give the user the ability to change the number of lines displayed in a table.

    I can do it with the following:

    The results of table reference

    OAAdvancedTableBean = tableBean

    (OAAdvancedTableBean) webBean.findChildRecursive (resultsTableName);

    Set of displayed rows

    tableBean.setAttributeValue (UIConstants.ROWS_ATTR, 10);

    I'm running it in the processRequest.

    It does not seem to do. It does not change the default lines is 20

    Is it possible to do this?

    Thank you

    Ronny

    Try this

    tableBean.setNumberOfRowsDisplayed (10);

  • C7280 - cannot scan. Error message indicates another program has control over the device

    I open the HP Device Manager to do a scan. I accepted the parameters and the scanning started. But the part passing through the analysis, I stopped the scan that I realized that I wanted to change the resolution. I leave the Manager device and rebooted but when I did, I got to tell an error message:

    'Cannot perform the function you have requested because another program has control over ice dev'.

    I have nothing else open and so I can't work on what program has control over the printer.

    C7280 Prtinter. Mac OS x 10.7.

    The Device Manager has not been updated for Lion and there is still no specific Lion software for your printer.

    So far, you have the choice of scanning with picture Capture or preview.  I'm sorry.

  • The10.3 Simulator displays icons on the toolbar Action exactly as they are displayed on the device itself

    I found that when I build less than 10.3 and run Simulator 3.0 or 3.1 that display icons in the action bar when VisualStyle is 'brilliant' in black on a grey and not black background on white. This is true if the icon is black on white or white on a black background in a first time, and it is the same for all screen sizes.

    I've attached an example.

    This is how the icons are actuualy on the device or will they be black on white.

    Mark, I just tested my change on all the bright and dark features.

    I was looking through my list of icons and I arrived just to pull the top one on the right... the solution was obvious!

    It is in this context of the specific icons that I had placed on the action bar, which was the question. Icons were reversed, but it is in this context.

    I found a complement to my graphics editor to remove (silimaire value = 0) the background and they displayed as expected.

  • Smartphone Ringtones blackBerry will not be displayed on the device, but are on my card.

    I put mp3 ringtones on my 9530 via Media Manager in Desktop Manager 5.  I did several battery grips and the tones I put on it will not show up in my ringtones.  I put them on the map of support and no device.  I tried a second time and two of each tone appear in the Media Manager, but not on the device.  I had this happen before, but usually a battery pull fixes the device.  Help please.

    Hello

    Go to the hidden file /ringtones show and remove the BBTHMBS. DAT file it as an index to theBlackberry file.

    Traction battery, let the device reindex and see if they appear.

    Thank you

    Bifocals

    No data will be lost when you do the following: remove the battery while the device is activated.
    Remplacer replace after one minute, let the device reboot 1-3 min, see if the problem is corrected.

  • How the setting to display in the report?

    Hi all... I have a multi select parameter in a report.

    Generally, we use this statement to initialize the model parameters

    <? param@begin: ParameterName? >

    and to show that we use: <? parameter_name? >

    But it's good for the parameters a unique value
    I have a multi selection setting, I need to show all these values(suppose 3) in the title of the report. (They may not be included in the SQL in a column)
    How to achieve this?

    Thank you very much in advance!

    You can use the same for multiple selection of values also

  • setting a display of the images low resolution

    new user. very happy with the product and very happy with the help of the forum (thanks).

    any who would mind helping me understand why two of my images appear to display resolutions very weak when adjacent images and the original png seems to be higher?

    I am on a deadline and was wondering if I could get a few quick pointers on the resolution in ID.

    I tried unloading and reloading the two offenders without it the question of fixing.

    TIA

    Are the links updated?

  • Is there a way to delete a button object in Captivate to a single slide, if it is set to display for the rest of the project?

    I created my own buttons next and previous, and I showing to the rest of the project. I want to remove the button from my last slide in my project because there is no next slide.

    You can't "delete" it, but you can hide it and / or disable (for a button)

    using the event to enter the slide.

  • Tried to build and run the "QXmlStreamReader" project, but the display of the device debugging errors] error 2, no rule to make target "main.cpp", need to "debug/main.o.

    I have tried to build and run the project "QXmlStreamReader" with momentics

    but display as errors

    The path location type Resource Description
    make: * [Device-Debug] problem error 2 QXSRExample C/C++
    make [2]: * no rule to make target "main.cpp", need to "debug/main.o.  Stop.    QXSRExample C/C++ problem
    make [1]: * [debug] problem error 2 QXSRExample C/C++

    My project is to

    CBC

    main.cpp

    qxsrexample.cpp

    Inc.

    qxsrexample.h

    assets

    hand. QML etc.

    Reference: http://qt-project.org/doc/qt-4.8/qxmlstreamreader.html

    And

    http://developer.Nokia.com/community/wiki/QXmlStreamReader_to_parse_XML_in_Qt

    I posted a few snippets on the forum some time ago, maybe they are useful:

    https://supportforums.BlackBerry.com/T5/native-development/how-to-parse-XML-data-coming-from-server-...

  • Folio is displayed on the device even after deletion

    Hello

    I have something strange happening on my device. Even after you remove a folio of InDesign or the producer of Folio it still shows on my device. It happens on both an iPhone and an iPad.

    I use a Mac ESES CS5.5.

    Thank you

    On the iPhone, you must pass the folio in the library to display the button of the Archive. This is the same technique used to remove any item downloaded as a podcast.

  • E250: songs are not displayed on the device

    Recently, I put new music on my player.  When I went to listen to music that I had just added wasn't there.  The music presents itself as being the player when contected to the computer.  I downloaded the new version of the firmware and that has not resulted in a change.  However, when I checked the USB mode (after looking through a bunch of messages) I found that it was PSG (he had been initially on MCP).  In MTP mode I can put music on my player without problem.  But here's the catch, my memory card is not recognized in this mode.  I tried to use WMP and Rhapsody (the system that I usually use) with no luck.

    Is there something I can do to make it all better, or is it the first signs of the end for my e250?

    I found the solution elsewhere on the internet.  I have reset the settings.  I did it by going to 'Reset All' under settings.  After doing this I changed the USB MSC mode and everything seems fine now.

  • Second disc displays in the device as offline Manager

    I have two physical drives on this system.

    The first (primary) and the boot drive is a SATA drive.

    The second is an IDE drive that has an IDE to SATA converter that what inputs via the USB port.

    The second drive shows in the BIOS and in Device Manager

    Device manager tab results are as follows:

    General tab: device is working properly

    Political tab: quick deletion

    The Volumes tab: (after show)

    Disc: Disk1

    Type: base

    "Status: offline"< most="" like="" reason="" not="" showing="" in="">

    Partition style: MBR

    Driver tab: Microsoft, as of 21/06/2006 version 6.1.7600.16385

    Details tab: Clicking on some properties do appear some value - many properties to the list

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

    Have tried to change the BIOS for the discs using the UEFI mode and legacy.  Always in offline mode.

    Tried to disable UAC, always drive offline.

    . QUESTION: How do online car?

    Tetraethyle3:

    Sorry to be so late to respond.

    Tried to get this and my printer online with this generation, but also some software problems.

    After fighting with this for several days has decided to test one of my old old records.

    Maybe have Win95 on it, I don't check.

    He appeared fine.

    After this decision I'd take a chance to those who have problems with my backup disk, and that's OK too.

    So obviously, the disk or controller board is bad.

    As long as I can get a player, I can play with each other and exchange the controller cards to see if in fact the reader or the Commission.

    Thanks for your help and happy holidays to you and yours.

  • Windows Explorer - list: how to set the default value to display all the contents of the folder 'List' not 'Tiles '.

    Using the Windows Explorer of Windows 7, how I have by default set to display all the contents of the folder 'List' not 'Tiles '.  I want set a default value for the new folders and edit globally all folders that I have.

    Thank you, Steve

    Hi Steve Menker,.

    Visit the links that measures to work with files and folders in Windows Explorer below:

    1. working with files and folders:http://windows.microsoft.com/en-US/windows7/Working-with-files-and-folders

    2. change the folder options:http://windows.microsoft.com/en-US/windows7/Change-folder-options

    3. organize, sort, or group your files:http://windows.microsoft.com/en-US/windows7/Arrange-sort-or-group-your-files

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to view point over the region of report?

    I have a page with several regions and a report region must be to display "Page Template body (2. (Les éléments ci-dessous le contenu de la région) ". but this point of the screen does not allow me to place a selection over this area report list. There is another point of view "Page Template Body (3. Items above content area)"that allows elements to display above region, but this point of display for the region of report changes the layout of the entire page. is it possible to set a different point of view as the "body of Page Template (2.» Items above content area)"which allows the elements to display above the region without changing the position of the region report?. any ideas are appreciated.

    Here is the test page...
    http://Apex.Oracle.com/pls/OTN/f?p=54577:12

    workspace: stone
    username:[email protected]
    password: apex_demo

    Thanks for your help,
    Surya

    Dene/Surya

    I must have missed something here... the page on the link specified
    http://Apex.Oracle.com/pls/OTN/f?p=54577:12
    has only one region.
    If there is only one region, is it important?

    But, Yes, if there is more of a region, and other areas have been set to display in the post "body model 2' only this particular region has been configured to display on the page 'page 3 model body', then Yes, this region would be displayed below the rest. (in descending order)

    Surya,

    Unless you want to have other areas to display items 'below', the fastest and easiest is to change all your other regions to set to display to the "model of the body 3' page and then check the position that you want by using the display sequence."

    In case you really need to have other areas to see the items below (depending on what you have on the page), you could possibly get away with the following:
    have all regions you want dispalyed before you particular region with the point on the top set to display to the position 'body 2' model '.
    have the area you want to display with the above items exposed to the "body 3' model '.
    have the rest of the regions you want dispalyed below this region to 'position of model of region 4' page

    I hope this helps.

    Alex.

  • The device or resource (web proxy) is not configured to accept connections on port "8080".

    I move my windows pc to windows 7 10 but its many problems.

    can I roll back to windows 7, my internet connection is always troubleshoot 'device or resource (web proxy) is not configured to accept connections on port "8080".

    First of all, I say I have windows 7 os in the office and we are connected to the network with BSNL Modem LAN cable. Its saying connected and access to the Internet but cannot able to access to any browser.

    I can using only Mozilla Fire Fox his work but other browser do not work.

    Hi Dhyan Singh Talodiya,

    Thanks for posting your query in Microsoft Community.

    I imagine the inconvenience that you are experiencing and will certainly help you in the right direction to solve the problem. However, I would be grateful if you could answer a few questions to refine the question in order to provide you with better assistance.

    1. Are all the device drivers and Windows updates are updated?
    2. You have security software installed?

    According to the description of the computer problem is cannot connect web proxy. The device or resource is not set to accept the connection on port 8080. The question might be if there is a corruption of parameters network or security software is limiting. Then, I suggest you to try the steps below and see if it helps you to solve the problem.

    Method 1: Resolution of network performance problems.

    Automated convenience store is a tool that can find and automatically fix problems with your computer. These utilities are not designed to solve all the problems, but they are useful to try because they can often save your time and efforts.

    Run the network troubleshooter utility:

    Method 2: Are looking for connection settings:

    1. start Internet Explorer.
    2. click on the Tools menu and then click Internet Options.
    3. click on the Connections tab.
    4. by dial and VPN settings, click the broadband connection, click settings, and then click on automatically detect settings.
    5. click on OK.

    Method 3:

    Temporarily disable the software security and user account control exit ramp when connecting.

    Follow the steps described in the article below to temporarily turn off the ramp of user account control and security software.

    Disable the antivirus software
    http://Windows.Microsoft.com/en-us/Windows7/disable-antivirus-software

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    Enable or disable the User Account Control

    http://Windows.Microsoft.com/en-us/Windows/turn-user-account-control-on-off#1TC=Windows-7

    Note: User Account Control (UAC) can help you to prevent your computer from unauthorized changes. It works by asking permission when a task requires administrative rights, such as installing software or changing settings affecting other users. We do not recommend disable user account control. If you turn it off, you must reactivate as soon as possible.

    I hope this helps. Please let us know the results. Feel free to write us again for any further assistance. We will be happy to help you.

    Kind regards

Maybe you are looking for

  • Want 5660: want manual user for printer HP 5660

    I just got this printer and would like some instructions on how it works.  That is to say: how to change printer of color to B & W or vice versa.  How to set up for printing images on smaller print - etc.

  • Anyone who can please answer this question please!

    My HP Jet 7 has a monitoring device on this subject that I need to know because my Tablet just got stolen about 13:00 today.

  • Need graphics card that takes care of 3 monitors.

    Original title: use a 3rd monitor. with a 3rd monitor I would use a third-party monitor for FSX. I have: -. Mobo:-Asus P5K Premium WiFiiFi Video card:-GeForce 9800 GTX (PCI-E) Three Dell 19 '' flat screens & OCZ 600W Psu I can't find a second Grfx ca

  • problem kb2676562 error 80070490 Windows update/windows update

    Separated from the following thread: http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_update/Windows-Update-problem-kb2676562-error-80070490/dfa5f841-ca88-43b0-9a5c-d1ff51e95da7 I also tried MicrosoftFixit.wu.LB.8026070246835467

  • Fixation of references while moving dashboards

    HelloI'm moving a dashboard OBIEE as below:Current formatA notebook (lies as /shared/ specification A)-Dashboard (folder)-Dashboard Project Green-Project Green (/shared/ notebook A / Project Green) (-Green billing project ( )/shared/ folder / Project