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

  • Home
  • SEARCH
  • 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 7541971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:02:13+00:00 2026-05-30T08:02:13+00:00

Ok, So I have standard sencha-touch panel, and because this application needs to be

  • 0

Ok,

So I have standard sencha-touch panel, and because this application needs to be capable of interaction for both mobile users and desktop(webkit) users, I need this to feel and look like a standard web application. How do I replace the touch scrollbars, with permanent browser scrollbars when browsing with a desktop browser?

I am sure I can workout how to run based on device, but I do not know how to replace the scrollbars. I am running the latest version of sencha touch – 2 beta.

Cheers, Josh

  • 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-30T08:02:15+00:00Added an answer on May 30, 2026 at 8:02 am

    Ok, so for any future sencha users this is the workaround I managed to come up with:

    Add this function anywhere:

    var setupPCScrollbar = function(container){
        var isMobile = (navigator.appVersion.toLowerCase().indexOf("mobile") > -1 || navigator.appVersion.toLowerCase().indexOf("ipad") > -1);
        if(!isMobile){
            if(container.isXType('selectfield'))container = container.down('list');// Add support for selectbuttons
            if(!Ext.isFunction(container.getScrollable) || !container.getScrollable() || !Ext.isFunction(container.getScrollable().getScroller))return console.warn("Attempting to apply pc scroller to non-container item");
            container.getScrollable().getScroller().setDisabled(true);
            var scrollContainers = Ext.DomQuery.select('.x-scroll-container', container.element.dom);
            var scrollBars = Ext.DomQuery.select('.x-scroll-indicator', container.element.dom);
            for(var i=0;i<scrollContainers.length;i++)
                scrollContainers[i].style.overflow = "auto";
            for(var i=0;i<scrollBars.length;i++)
                scrollBars[i].style.zIndex = "-1";
        }
    }
    

    This function will check for mobile/ipad, then if neither of these are found (likely to be pc) then disable sencha touch scrollbar, hide scrollbar and add standard html scrollbar.

    This function is used for example as follows and should work on panels, lists, etc:

    var container = ...
    setupPCScrollbar(container);
    

    I would like to have this implemented as a plugin, but have no idea how to add it to the ‘container’ class’s constructor.

    **note this is a ipad/pc specific app.

    Hope this helps someone 🙂

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

Sidebar

Related Questions

I have a web application that have standard form authentication declared, like this: <login-config>
I am programming an application with Phonegap & Sencha Touch. I have my viewport.js
I have standard ASP.NET 4 application. Inside this application there are also few razor
I have a standard MOSS 2007 Web Site (MOSS Terminology: Application and a SiteCollection)
I have standard class library infrastructure assembly which i reference in my main application.
I have a standard ASP.NET MVC site with forms authentication. Users log in via
I have standard databindings setup for all my TextBoxes to an Object like this:
Could someone explain this for me? I have standard relations in my MSSQL DB:
Many languages have standard repositories where people donate useful libraries that they want others
I've heard they have standard GUI guideline, but I can't seem to find a

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.