Software Archive
Read-only legacy content
17061 Discussions

Android Cordova error on HUAWEI

Alessandro_S_
Beginner
484 Views

     Hello, Cordova project (NO CROSSWALK). Problem on some android device (4.2.2 HUAWEI - HUAWEI Y600-U20):

    I have 2 identical div structures    

        <div id='mdispora'  style='position:absolute;top:34px;left:0px;width:100%'>
           <div id="carousel_dispora" class="ff_post" style="position:absolute;top:0px;left:0px;width:100%;overflow-x:hidden;overflow-y:scroll" >
               <div id="content_carousel_dispora" style="width:100%"></div>  
           </div>
         </div>
         <div id="mdispora2"  style="width:100%;height:106px;position:absolute;left:0px">
             <div style="width:100%;height:106px;" class="ff_post">
                   <div id="cont_dispora"  style="border-bottom:1px solid #d9dbd9;width:100%;height:42px;position:absolute;left:0px;top:0px"></div>
             </div>
         </div>  

at runtime (when page is loaded) the dive are located on the screen (mdispora div on top and mdispora2 on the bottom). then after 100ms 2 divs are added to content_carouse_dispora div and to cont_dispora div.(say newdiv1 added to content_carousel_dipora and newdiv2 to cont_dispora)

well, if I bind click on these 2 latter divs (click event will show a simple alert) the event is fired only for the newdiv1.

I tested on so many devices and everything works, I have this issue on 4.2.2 Android HUWAWEI. How it comes?

on logs I notice that an event error is issued 

 WebKit does not yet implement getComputedStyle for 'font'. could be this?

 

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
484 Views

The inconsistencies in Android <4.4 are many and dependent on not only the version of Android, but also the manufacturer of the device. This is why we offer Crosswalk, to insure consistent HTML5 behavior across Android versions and different manufacturers. Please try this using a Crosswalk build to see if that fixes the issue.

0 Kudos
Reply