[TIMOB-23123] Titanium.UI.SIZE : Webview is taking height more than the contents on iOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2018-12-04T12:55:46.000+0000 |
Affected Version/s | Release 5.2.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | webView |
Reporter | Aminul Islam |
Assignee | Unknown |
Created | 2016-03-30T12:53:44.000+0000 |
Updated | 2018-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
File | Date | Size |
---|---|---|
android.png | 2016-03-30T12:54:30.000+0000 | 26296 |
Simulator Screen Shot Mar 30, 2016, 6.32.37 PM.png | 2016-03-30T12:54:29.000+0000 | 9574 |
Have same problem with 3.5.1GA.
[~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.