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

Titanium.UI.SIZE : Webview is taking height more than the contents on iOS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Duplicate
    • Affects Version/s: Release 5.2.1
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:

      Description

      Hi,
      Webview is taking height more than the contents on iOS. When we set webview height Titanium.UI.SIZE it takes lot space below the actual content on iOS but it's working fine on android. Please find the attached screenshot.
      Test code

      var window = Ti.UI.createWindow({	
      backgroundColor: 'red', 
      }); 
      var webview1 = Ti.UI.createWebView({ 
      height: Titanium.UI.SIZE, 
      backgroundColor: 'green' 
      }); 
      webview1.setHtml("<html><body><p style='font-size:8px;'> I am using WebView for setting the html content. this is test string which contains <b> some bold text.</b> Now moving to new line. <br/> Now, I'm on new line.</p></body></html>");
       
      //webview.html = '<html><body>test</body></html>'; 
      window.add(webview1); 
      window.open();
      

      Test Environment

      Operating System
        Name                        = Mac OS X
        Version                     = 10.11.2
        Architecture                = 64bit
        # CPUs                      = 4
        Memory                      = 8589934592
      Node.js
        Node.js Version             = 5.9.0
        npm Version                 = 3.7.3
      Titanium CLI
        CLI Version                 = 5.0.6
      Titanium SDK
        SDK Version                 = 5.2.1.GA
        SDK Path                    = Support/Titanium/mobilesdk/osx/5.2.1.GA
        Target Platform             = iphone
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aislam Aminul Islam (Inactive)
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-9578
                    Sync status:
                    ERROR
                    Last sent:

                    Git Integration