"Expand Your BlackBerry Webworks App Beyond the Limits of Width and Height with Scrolling

The initial structure of the mobile application consists of:

The basic HTML layout is as follows:

<div id="title">Title</div>
<div id="tabs">Some tabs</div>
<div id="container" x-blackberry-focusable="true">
<div id="contents" style="width: "1000px;" height: "1000px;">
<div x-blackberry-focusable="true" onmouseover="highlight(this)" onmouseout="noHighlight(this)">I am some content">
 . 
 .
 .
<div x-blackberry-focusable="true" onmouseover="highlight(this)" onmouseout="noHighlight(this)">I am some content"> 
</div>
</div>

The CSS styling is set up as follows:

#title
{
   height: 50px;
}
#tabs
{
   height: 40px;
}
#container
{
   overflow: auto;
}

To ensure responsiveness, jQuery is used to dynamically adjust the width and height of elements based on the user's screen size. For example, the width and height of div#container are calculated relative to the device's dimensions. Specifically, the height of div#container is determined by subtracting the heights of div#title and div#tabs from the screen height.

It is important to note that the contents within div#container are designed to exceed the container's dimensions. This means that on devices like the Torch 9800 (with a screen size of 360x480), the inner contents will be larger than the div#container itself, which measures 360x390.

Despite setting overflow: auto for div#container, scrolling using the trackpad or trackball will not allow the contents to extend beyond the specified width and height of the container. This issue has been causing challenges for several weeks now.

If anyone can offer guidance or assistance with this problem, it would be greatly appreciated. Thank you.

Answer №1

Give this a shot -

  #wrapper{
      overflow: auto;
      -webkit-overflow-scrolling: touch;
  }

please note: If the wrapper or its contents have position properties (absolute or relative), this may not function as expected. Blackberry OS6 and higher versions utilize webkit technology.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Alter the top property of CSS using JavaScript

Hey there! I'm currently working on a project where I want to gradually change the background when a button is clicked on my website. Below you'll find snippets of JavaScript and HTML code that I'm using for this purpose. Can you take a look ...

"Learn how to dynamically change the color of a button in Angular after it has been clicked

Can someone assist me in changing the button color to red after it has been clicked? I am looking for guidance on how to achieve this. The current code snippet is as follows: <td> <button mat-icon-button color="primary"> <m ...

Tips for adding a border to a table cell without disrupting the overall structure of the table

Looking for a way to dynamically apply borders to cells in my ng table without messing up the alignment. I've tried adjusting cell width, but what I really want is to keep the cells' sizes intact while adding an inner border. Here's the sim ...

Utilizing Card Images in a Slider with Bootstrap 4

Is there a way to turn the card-image-top section into a slider, especially for mobile use? I want to showcase multiple product images in this section for my customers to see. Any simple solutions for achieving this? <div class="card" style= ...

Issue with duplicate listeners on page revisit in Jquery Mobile

My jQM app consists of numerous pages, and I am in the process of upgrading it to jQM 1.4. In order to comply with the new guidelines for 1.4, I am implementing the latest widgets/methods and eliminating all deprecated code. Let's consider a specific ...

What is the best way to extract the elements within a form using Angular and automatically add them to a list?

Recently, I started learning Angular and decided to create a simple list feature. The idea is to input an item name and price, then click "Add item" to see it added to the list below. I have all the code set up correctly, but for some reason the name and ...

What's the trick to making a column that's 2/3 wide in a 34grid layout?

Is it possible to use the 34 Responsive Grid system to create a column that takes up two-thirds of the full width? Although the Grid System has equal columns settings, I'm curious how to combine or merge two columns together? <div class="containe ...

Leveraging jQuery to access data attributes in JSON data using AJAX requests

I am having success with a simple ajax call that returns JSON data. However, I am facing difficulties selecting elements with jQuery after the ajax call. Could this be because of how they are loaded? Currently, I am attempting to alert the contents of one ...

Using Chartjs to Dynamically Update Data from Database Values

I'm encountering some difficulties while attempting to refresh my Chartjs doughnut chart with data retrieved from my database. Below is the ajax call that I've implemented successfully: $.ajax({ url: "<!--#include virtual="../include/e ...

When invoking the jQuery ".load('pageName')" method, HTML pages are not loaded from the application cache

I have been working on incorporating the html5 offline caching functionality into our html pages, and everything seems to be running smoothly with jQuery version 1.4. However, I encountered a problem when I upgraded to jQuery 1.8. Specifically, issues aro ...

Tips for maintaining the original ng-click initialized value as the ng-init value after the page is refreshed

My ng-repeat feature includes buttons for liking and disliking images. The problem I'm facing is that each time the page refreshes, the count of likes and dislikes gets reset to the initial value set by ng-init. How can I maintain the incremented lik ...

Header that sticks to the top of a container as you scroll through it

Many questions arise regarding sticky elements in the DOM and the various libraries available to handle them, such as jquery.pin, sticky-kit, and more. However, the issue with most of these libraries is that they only function when the entire body is scro ...

Transforming HTML produced by an outdated ASP system to generate modern ASP.NET 2.0 web pages

I have a friend who is currently working on developing a solution to convert aspx pages from html pages generated by an older asp application. The plan involves running the legacy app, capturing the html output, cleaning the html with a tool like HtmlTidy ...

Troubleshooting AJAX hover functionality issue

Here is the content that loads through AJAX: <div class="grid"> <div class="thumb"> <img alt="AlbumIcon" src="some-image.jpg"> <div style="bottom:-75px;" class="meta"> <p class="title">Title< ...

Passing data from a form to JavaScript and then to PHP

I've been seeking assistance from another source for a similar issue, but I could really use some help to make this code function. My aim is to have the form send the "count" variable to JavaScript so it can execute a for loop a specific number of ti ...

How do I make an image fill the entire space of a div using JQuery and CSS?

html: <body> <div class="custom-div"><input type="button" id="x" name="button" value="Search" onclick="showUser()" class="button"/></div> <input type="image" name="button" value="Search" onclick="showUser()" class="bu ...

Using jQuery to import certain library causes the XPage to completely lock up

My XPage only relies on 2 js imports - one being JQuery and the other dependent on JQuery specifically for smart companies search in the Russian Federation. However, a challenge arises when trying to import the second library as it causes the entire page t ...

Making a Chrome extension that allows for cross-domain jQuery.Ajax requests

Looking to develop a Google Chrome extension that displays a notification based on the result of an Ajax request. I have already created the function for generating notifications, all that's left is to make the Ajax request to fetch a .php file from ...

Triggering click events using requireJS and jQuery

I am currently utilizing requireJS in my project. Within my codebase, I have two essential files, one containing the main app configuration and functions: app/main.js define(["jquery", "jquery_migrate"], function() { return { bar: function() ...

Can I add different tags directly inside a div container in Bootstrap 3 without using .row and .col?

Should I place a tag directly inside in Bootstrap 3? or is it better to have each inside .row>.col-md-# Is this layout acceptable, or could it potentially cause issues on mobile devices? <div class="container"> <h1>Lorem ipsum dolor sit ...