Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6328501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:28:07+00:00 2026-05-24T17:28:07+00:00

I have a custom extension of VerticalFieldManager that automatically scrolls itself to display data

  • 0

I have a custom extension of VerticalFieldManager that automatically scrolls itself to display data to the user. Both above and below that VFM, there are other components that the user can interact with. On OS5, this works perfectly and exactly how I expect. On OS6, with the built-in “smooth scrolling” feature, when the user tries to scroll from the fields above the VFM to the fields below, the VFM is scrolled by the user’s input before transferring focus to the fields below the VFM.

Is there any way to override this behavior and tell the OS to leave my VFM alone? In OS5, this was a simple as making the VFM non-focusable.

I have tried fiddling with the vertical adjustment and vertical quantization on the VFM with no luck. The VFM never actually receives focus, the OS just scrolls it. I assume the OS thinks that it is being helpful, but it is not! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:28:08+00:00Added an answer on May 24, 2026 at 5:28 pm

    I figured out a solution by overriding the navigationMovement function in the parent Manager, something like this:

    protected boolean navigationMovement(int dx, int dy, int status, int time) {
        if (getField(getFieldWithFocusIndex()) == tabbar) {
            Field f = tabbar.getFieldWithFocus();
            if (f == lastTabButton) {
                if (dy > 0) {
                    tabData.setFocus();
                    return true;
                }
            } else if (f == firstTabButton) {
                if (dy < 0) {
                    return true;
                }
            }
        } else if (getField(getFieldWithFocusIndex()) == tabData) {
            MyTab tab = (MyTab) tabs.get(tabData);
            if (tab != null && !tab.willHandleNavigationMovement(dx, dy)) {
                if (dy != 0) {
                    if (dy < 0)
                        lastTabButton.setFocus();
                    return true;
                }
            }
        }
    
        return super.navigationMovement(dx, dy, status, time);
    }
    

    You will see in the code above that I had to also override the behavior when scrolling up from the very top and scrolling down from the very bottom because the OS was again taking over and “helping” me scroll the non-focusable VFM.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom file type/extension that I want to associate my app with.
I have a custom view (an extension of a TextView) that I want to
I have made my custom In extension method as shown below: public static class
In a VS Package (Visual Studio Extensibility), I have a custom extension registered (for
I have custom classes that I currently instantiate within App.xaml as resources. I want
I have a few models that need to have custom find conditions placed on
I have build a custom Html Helper extension as follows: public static string DatePicker(this
I have a custom tag in Jinja2 that I want to output something only
I have written a custom dialog (form) that I can use in a C#
my first question is, where do I put this custom extension so that it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.