Quantcast
Viewing all articles
Browse latest Browse all 8068

Android 4.4.2 webView height is zero

Hello,

I've been checking sdks 3.2.0.GA and 3.2.1, as well as 3.1.3.GA, with a simple html application project. single page:

<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <script>
            //lert(screen.availHeight);
        </script>
        <style type="text/css" media="all">
 
        body,ul,li {
            padding:0;
            margin:0;
            border:0;
        }
 
        html,body {
            margin:0px;
            padding:0px;
            height:100%;
        }
 
        body {
            font-size:12px;
            -webkit-user-select:none;
            -webkit-text-size-adjust:none;
            font-family:helvetica;
        }
        </style>
    </head>
    <body>
        <div style="width:100%;height:100%;background-color:red;">sadasdsadsa</div>
    </body>
</html>
By all accounts, this should have a red DIV covering the entire screen. However, on 4.4.2, I get a red div which flickers for 0.1 seconds or so, and then only the text inside, no color (actually, the default window color). measuring webview height and window height both show 0.

same code, Android 4.3 - all ok.

Any ideas? some of my customers have started complaining about this...

Thanks!


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>