This is a migrated thread and some comments may be shown as answers.

View doesnt Show until touch

3 Answers 56 Views
Application
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 06 Aug 2012, 12:42 PM
Good morning,

I am testing the KendoUI Mobile framework in combination with trigger.io
The point is that it shows the background but nothing else.
Then when touching  the screen the Layout/View appears (thats only happening on the the device, not on emulator)
the content also appears when you turn the mobile to landscape.

Some idea why it happens? Any idea to make a workaround (calling some kind of function in data-show per example)??

Best regards!
<!DOCTYPE html>
<html>
<head>
    <title>Test Runner</title>
    <link href="css/kendo.mobile.all.min.css" rel="stylesheet" />
     <script src="js/includes/jquery.min.js"></script>
    <script src="js/includes/kendo.mobile.min.js"></script>
</head>
<body>
    <div data-role="view" data-layout="default" id="default">
        Hello Mobile World!
    </div>
 
    <div data-role="layout" data-id="default">
        <div data-role="header">
            test runner
        </div>
    </div>
    
    
    <script>
 
        window.kendoMobileApplication = new kendo.mobile.Application(document.body, { platform: 'android' }, {
            viewShow: function (e) {
                var viewID = e.view.element.attr("id");
            }
        });
 
 
 
     
 
    </script>
</body>
</html>

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 06 Aug 2012, 12:47 PM
Hello Marc,

I am not sure what may cause this issue. We have been testing in phonegap extensively, and we have not observed such thing. Perhaps it is a good idea to contact the trigger.io support, too?

Regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Marc
Top achievements
Rank 1
answered on 06 Aug 2012, 01:30 PM
And forgot: if you navigate with tabstrip per example between views it works fine, but if you change to a view with different layout then it happens also. any function i might call after show? best regards marc
0
Ali
Top achievements
Rank 1
answered on 14 Sep 2012, 07:56 PM
Its because of hardware acceleration. I face this even with phonegap with Hardware acceleration enabled. But keep in mind that this happens only on certain devices.

With trigger.io check out this link: http://docs.trigger.io/en/v1.4/modules/requirements.html?highlight=hardware%20acceleration

This is to disable hardware acceleration and Kendo UI is gonna work flawlessly.
Tags
Application
Asked by
Marc
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Marc
Top achievements
Rank 1
Ali
Top achievements
Rank 1
Share this question
or