Is not scrolling screen when the virtual keyboard is opened by clicking an edit field


I have searched and tried many things, but not got success.

There are three managers of verticalfield in my screen.



= new VerticalFieldManager(Manager.USE_ALL_WIDTH |) Manager.USE_ALL_HEIGHT | Manager.NO_VERTICAL_SCROLL) {}

protected voidpaint (Graphics grphcs) {}

if (imgBG! = null) {

grphcs.drawBitmap (0, 0,

imgBG.getWidth (), imgBG.getHeight (), imgBG, 0, 0);


Super.paint (grphcs);


protected void sublayout (int maxWidth, maxHeight int) {}

maxWidth = UIConstants.


maxHeight = UIConstants.


Super.sublayout (maxWidth, maxHeight);

Super.setExtent (maxWidth, maxHeight);





= new VerticalFieldManager(Manager.USE_ALL_WIDTH |) Manager.USE_ALL_HEIGHT | NO_VERTICAL_SCROLL) {}

protected voidpaint (Graphics grphcs) {}

if (imgBGCoverInternetHome! = null) {

grphcs.drawBitmap ((UIConstants.

SCREEN_WIDTH - imgBGCoverInternetHome.getWidth () / 2, 0, imgBGCoverInternetHome.getWidth (), imgBGCoverInternetHome.getHeight (), imgBGCoverInternetHome, 0, 0);


Super.paint (grphcs);


protected void sublayout (int maxWidth, maxHeight int) {}

maxWidth = UIConstants.


maxHeight =

imgBGCoverInternetHome.getHeight () / *-UIConstants.SCREEN_HEIGHT (UIConstants.LABEL_HEIGHT + UIConstants.FOOTER_MENU_HEIGHT) * /;

Super.sublayout (maxWidth, maxHeight);

Super.setExtent (maxWidth, maxHeight);





= new VerticalFieldManager(USE_ALL_WIDTH |) USE_ALL_HEIGHT | VERTICAL_SCROLL) {}

protected void sublayout (int maxWidth, maxHeight int) {}

maxWidth = UIConstants.


maxHeight =

imgBGCoverInternetHome.getHeight () - imgButtonFocusBig.getHeight (/2/*UIConstants.SCREEN_HEIGHT - (UIConstants.LABEL_HEIGHT + (UIConstants.FOOTER_MENU_HEIGHT + VERTICAL_GAP))) * /;

Super.sublayout (maxWidth, maxHeight);

Super.setExtent (maxWidth, maxHeight);



I'm addidng all fields in the Manager of scrolling that is vfmScroll.

By clicking on the edit field, virtual keyboard opens on the screen, change the field leathers and screen does not scroll.

Help, please.

Thanks in advance.


Thanks for the reply of Peter. Instead of UIConstants.SCREEN_HEIGHT, now I use Display.getHeight () - headerHeight-footerHeight. Given that Display.getHeight () is calculated accordingly when the virtual keyboard is open, so his works well for me.

Tags: BlackBerry Developers

Similar Questions

  • my virtual keyboard does not work when I try to connect to my Bank. keeps telling me to use the virtual keyboard, but it does not work

    I use to be able to use the virtual keyboard when I logged my Bank. now it has stopped working.

    Try a system restore to a Date before the problem began:

    Restore point:

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    See you soon.

    Mick Murphy - Microsoft partner

  • After the upgrade to win10 does not show the virtual keyboard in the taskbar

    After the Win10 the virtual keyboard does not show in the taskbar when you use programs that require to connect and it does not appear iwhen attempt to use Word (version Office365). These programs are therefore unusable, unless it is a workaround.  Does anyone know how to solve this or a work around for it?

    Hello m875,.

    What 'Tablet' do you use?

    I improved my tablet of 8 flow and had no problems.

    If you go to settings > devices > typing, you can enable and disable certain functions of touchpad.

    The last two options on the bottom are disabled by default. Can you turn those on to see if this gives you what you need?

    (Automatically display the touch keyboard in glass mode apps...)

    Once, when I type a mailbox type, the keyboard will appear.

    Does that help? Let me know.

  • The virtual keyboard will prevent the display of gestures in some of the screens.


    If peripheral BB10 function key a cheap shots left that the keyboard is displayed even if the screen has no control of editfield. How can I disable this behavior on some of the screen.

    Same issue was discussed below thread, but there is one year and no solution:

    A workaround that I have implemented is to listen BPS events:

    Subscribe (virtualkeyboard_get_domain ());

    then, virtualkeyboard_request_events (0);

    and then, to catch keyboard events and hide the keyboard.

    If (bps_event_get_domain (event) is virtualkeyboard_get_domain())

    This workaround works, but the problem is virtual keyboard appears to half way through and dismissed immd.

    I want to completely disable the virtual keyboard to appear on the gesture on some of my screens.

    is this possible? using something in the bar - descriptor.xml? or handling certain events in C++, QML?

    Here is the configuration that I use:

    SDK: 10.1

    Feature: Z10 with software version 10.2

    IDE: Momentics version 2.0

    Thanks in advance.

    I think the problem here is that gestures like this are handled by OS not by an application so you can not stop this behavior.

  • Screen do not maximize mode full-screen when the taskbar is set to hide

    original title: Gap Auto-Hide

    I put my tool bar to auto hide. Normally, a zoomed window will extend to the bottom of the screen when the task bar is hidden. However, whenever I restart Windows, any window that is maximized will only go down insofar as space of the taskbar visible again, even when it is hidden. Turning auto-hide and the new set, but only until that next time that I reboot. Is there a way to fix it permanently? I use XP Pro.

    The problem I have is happening with any program that I open, not only IE and windows, then I would say it's more a problem of Windows.

    I don't think that was said in the original post.

    Check you the Technet Forum - they are the best service.

  • BlackBerry smartphones can not hide the virtual keyboard

    Since yesterday, I have not been able to hide the virtual keyboard to quickly slide the finger down through the virtual keyboard.  I can hide it only by pressing the BB and then by choosing Hide keyboard.

    I am afraid that something bad might happen on the phone and I would like to know if there is a way to solve this problem before you return it to the store.

    Thank you.

    you have the latest OS and I do not see this question on my own.

    did you do a battery pull? With the BlackBerry device powered time, remove battery for a few seconds and then reinsert the battery to restart. see if the problem persists after.

  • (Landscape) Mobile home screen do not size correctly when the device is held in Portrait

    I have a mobile project (AIR) for iPad and iPhone that has startup landscape screens when the user clicks on the icon. However, when the user is now the camera in portrait mode, image of the start screen opens and resizes an image of landscape in portrait mode. Looks really bad too! I have only provided images of the landscape. -Does anyone know what is happening here?

    What is your picture of app support? If so, you should provide the necessary portrait icons.

    If this isn't the case, you must restrict your apps orientation. An event is raised offshore on the orientation change that gives you a chance to control: tationEvent.html

    In my landscape only applications, it is specified in the XML application, and then I simply listen to changes. for example

    Listen for a change in direction

    stage.addEventListener (StageOrientationEvent.ORIENTATION_CHANGING, _orientationChangeHandler);

    neglect no change orientation, which is not the landscape

    function _orientationChangeHandler(e:StageOrientationEvent):void


    If (e.afterOrientation == StageOrientation.DEFAULT | e.afterOrientation == StageOrientation.UPSIDE_DOWN)


    e.preventDefault ();



    Even if it is not even necessary more, the XML should really allow orientation specification limits as well as the limits of the device. That code allows the user to use the landscape or landscape upside (requires Apple) and neglects to portrait or portrait upside.

  • The disappearance of the virtual keyboard Pro iPad support

    For some reason, the virtual keyboard on my iPad pro just disappears and can not be found. This happens intermittently and it is very frustrating. Does anyone else have this experience?

    Are you connected any keyboard bluetooth for iPad Pro?   If so, it is probably auto-login when you come into 30 feet about this keyboard.  Go to the BlueTooth when you have this problem and see if there is a device connected keyboard when you have no keyboard.   If so, disconnect it from settings.

    Hope that helps

  • Unable to get the virtual keyboard.

    Hi all

    On my request, I want to use the virtual keyboard. When using "BasicEditField" I could get the virtual keyboard. help-

    this.getVirtualKeyboard () .setVisibility (VirtualKeyboard.SHOW_FORCE);

    but when I add 'PasswordEditField' I don't you virtuakeyboard. Any solution?

    When you move to the screen following at this time bfore pushing the next screen you can use this piece of code to hide the keyboard


    Press the button Bravo thank the user who has helped you.

    If your problem has been resolved then please mark the thread as "accepted solution".

  • How to force the virtual keyboard to hide?

    I am developing an app for BB Storm and I need to force the virtual keyboard to hide and close pushing / croustilleur between the screens.  I tried to set the visibility state of the keyboard during the initialization of each screen via Screen.getVirtualKeyboard () .setVisibility (VirtualKeyboard.HIDE_FORCE), but it does not work.

    The documentation for the keyboard interaction and screen is sparse, at best, I wish RIM would improve their docs.

    I found the problem.  It turns out that only the control (not the screen) who "owns" the virtual keyboard can show/hide it.  So I was able to hide the keyboard by substituting the method onUnFocus of the input area and hide the keyboard.  This seems silly as the reference for the virtual keyboard is obtained from the screen object.

    protected void onUnfocus()
    super.onUnfocus ();
    VirtualKeyboard vk is UiApplication.getUiApplication () .getActiveScreen () .getVirtualKeyboard ();.
    vk.setVisibility (VirtualKeyboard.HIDE);

  • IP not set to start the virtual machine

    Environment: ESX 4 server, hosting VMware Studio 2.0 (final version), will deploy device created in the same ESX host.


    I was not yet able to determine if my wait will not, but I expected that my VM would be marketing it would have an assigned IP address already if I finish the network settings section in the build settings. But when I start my VM, it starts with IP =

    I'm going to network Type = static and by filling in all the details for the IP, mask subnet, gateway, DNS 1 and 2. It seems that they are used when the virtual machine is in 'construction' on the host, but I'm not entirely sure about this.

    In the OVF IP assignment settings, I tried selecting OVF environment, but have not set of OVF properties (I don't think that this should be mandatory if I am already addressing in the build settings).

    After construction, into my vSphere Client (ESX4), I chose the file & gt; Deploy the template OVF... & gt; Deploy from URL and paste the URL of the virtual machine built recently. I start the virtual machine and watch the console screen boot and load the operating system. IP address is never assigned and the console device is displayed with IP =

    I then have to connect with the image, manually assign the IP settings and then everything works. I expect this happen at boot time so that my firstbootscript can take advantage of the assigned IP address.


    Maybe I go about it the wrong way, but my usecase is as follows:

    Build a VM & gt; Distribute the VM on end user & gt;  end user deploys on ESX and chooses address IP & gt; end user boots VM for the first time & gt; firstbootscript runs automatically

    Am I missing something? Can I have different expectations about how IP assignment is supposed to work? I read about IP Pools, but this isn't an option in my vSphere Client.

    Property of the FVO is the best option to set an IP address.

    Long back for Linux OS, I have written a shell script to set the IP address and the hostname in firstboot Virginia you can try this for your going here is the link for the same thing.

    In the OS from VMware Studio tab you can paste this script in the script firstboot.

    First of all, please run this script manually and then use it in VMware Studio firstboot.

  • Close the virtual keyboard


    I am looking for a way to prevent the appearance of the virtual keyboard, when the user enters a textfied. Is this possible?

    Thank you!


    It will be possible to AIR 2.6 (but currently not possible).

  • hide the virtual keyboard hangs in Z10

    Hi, I'm porting android app to Z10.

    I use following code to hide the virtual keyboard in onCreate():


    InputMethodManager imm = (InputMethodManager) getSystemService (Context.INPUT_METHOD_SERVICE);  imm.hideSoftInputFromWindow (mainActivity.this.getCurrentFocus () .getWindowToken (), inputMethodManager.HIDE_NOT_ALWAYS);


    However, it always crashes in BB10.2.

    Can someone tell me how to hide the virtual keyboard?

    Thank you

    I finally found the problem:
    1 when I have something to edit entry, click on the button 'Next' in the virtual keyboard, it will focus on the button.
    2. when I click the button, the "mainActivity.this.getCurrentFocus ()" is return NULL. This caused the problem

    Thanks anyway.

  • How to customize the virtual keyboard?


    I am looking for a way to customize the virtual keyboard. I want to customize keyboard and form location, places default keys in the keyboard for some specific languages, the keyboard, the size of the keyboard etc. However, the customization nearest you, I found on the API reference manual is to define the name of the Enter key and to use different layout of a set fixed (link). Construction of a new keyboard from scratch is not an option for me. And I want to use the default keyboard features (like pushing the key words of)

    How can I customize the virtual keyboard by default?

    A big no, no, you can't mess with the user of a BB keyboard! If you need a custom keyboard (let's say for a game), you will need to start over again.

  • How to avoid the minimizin of the screen when the user down ups slide

    How to avoid the minimizin of the screen when the user ups the down slide.


    I guess that not possible because this is a feature of the system. Be able to substitute the blow to the gesture of bottom up would mean for combat when a user can switch to another application. It is not something that an application must be able to do it at all.

Maybe you are looking for