Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25815

Android: HTML style "position: absolute" hiding the div or HTML element in Webview

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None
    • Environment:

      WebView, Android, HTML Style

      Description

      Hello,

      HTML style "position: absolute" hiding the div or HTML element in Webview on Android.

      Test Environment:
      SDK: 7.0.2.GA
      Appcelerator Command-Line Interface, version 7.0.2
      Android Device: Samsung Gallaxy Grand prime (5.1.1)
      Test Code:
      app.js

      var webview = Titanium.UI.createWebView({
      	url : 'test.html'
      });
      var window = Titanium.UI.createWindow();
      window.add(webview); 
      window.open();
      

      test.html

      <!DOCTYPE html>
      <html>
      <body>
      <h1 style="color:blue; bottom: 25px; position: absolute; width: 100%;">This is a heading</h1><!--Here we can use any Div also-->
      </body>
      </html>
      

      When we remove the style "position: absolute" its working fine for Android.

      Note: Same code is working fine for iOS.

      Thanks

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                mrahman Mostafizur Rahman
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6210
                    Sync status:
                    PENDING
                    Last received:
                    Last sent:

                    Git Source Code