Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23123] Titanium.UI.SIZE : Webview is taking height more than the contents on iOS

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2018-12-04T12:55:46.000+0000
Affected Version/sRelease 5.2.1
Fix Version/sn/a
ComponentsiOS
LabelswebView
ReporterAminul Islam
AssigneeUnknown
Created2016-03-30T12:53:44.000+0000
Updated2018-12-04T12:55:46.000+0000

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

FileDateSize
android.png2016-03-30T12:54:30.000+000026296
Simulator Screen Shot Mar 30, 2016, 6.32.37 PM.png2016-03-30T12:54:29.000+00009574

Comments

  1. Angel Petkov 2016-04-14

  2. CREATIVE KAIZEN 2016-07-27

    Have same problem with 3.5.1GA.
  3. Angel Petkov 2016-07-27

    [~CREATIVE KAIZEN] Hello, only just realised all of our comments were restricted to developers, apologies for that. Please take a look at the above comment and also at the related ticket. Thank you.

JSON Source