Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard on iPad no scroll #242

Open
fmhc opened this issue Jan 13, 2015 · 0 comments
Open

Dashboard on iPad no scroll #242

fmhc opened this issue Jan 13, 2015 · 0 comments

Comments

@fmhc
Copy link

fmhc commented Jan 13, 2015

we are currently using Pentaho with a CDE Dashboard on bootstrap template. When opening the Dashboard in Pentaho Mobile or in Safari/Chrome on an iPad 2 we are unable to scroll down on the Dashboard.

We already tried the fixes provided in the Pentaho forums (e.g. http://forums.pentaho.com/showthread.php?131973-Pentaho-4-5-CE-and-iPAD-(no-scrolling-inside-mantle-tabs) and http://redmine.webdetails.org/issues/2850) but this does not work.

tested software versions: Pentaho BI Server: 5.1 and 5.2, currently 5.2.0.2.84 Pentaho CDE: v14.07.29 Pentaho Mobile App: newest version for Pentaho 5 iPad Version: 2, updated

The code we use:

var applyScroll = function() {
var zoom, height = $(window.top).height();
$('body').css({'height': height, 'overflow-y': 'scroll', 'webkit-overflow-scrolling': 'touch'});
(Math.abs(window.top.orientation) == 90 ) ? zoom = '100%' : zoom = '78%';
$('.container').first().css('zoom', zoom);
}

if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g) && (window.innerHeight != window.top.innerHeight)) {
$(document).ready(function() {
applyScroll();
});
window.addEventListener("orientationchange", function() {
applyScroll();
});
}

can someone help with that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant