Pentaho CDE Dashboard not scrolling on ipad

We are currently using Pentaho with CDE Dashboard on the bootstrap template. When opening the dashboard in Pentaho Mobile or Safari / Chrome on iPad 2, we cannot scroll the dashboard.

We've already tried the fixes provided on 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 that won't 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: latest version for Pentaho 5 iPad Version: 2, updated

Used code:

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();
    });
}

      

Does anyone know how to fix the problem?

+3


source to share





All Articles