[TIMOB-2707] Add a webview to a tableView (1.5.1.) behaves rare or doesn't work (Iphone).
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-07-26T14:31:50.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | FĂ©lix |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:27:32.000+0000 |
Updated | 2012-07-26T21:12:59.000+0000 |
Description
Create a Window, add a tableView and a row with a webView within it. The behaviour is very strange, as soon as you you scroll it disappears. Here is the code:
var win = Titanium.UI.createWindow();
var defnWebView;
var table;
var defnRow;
var data = [];
data[0] = Titanium.UI.createTableViewSection();
defnRow = Titanium.UI.createTableViewRow({
height:'auto', className:'wev'
});
defnWebView = Titanium.UI.createWebView({
height:'auto',
html:"<html><body style='font-size:12px;'><div id='content'><p><span style=\"font-family: Arial, Helvetica, sans; font-size: 11px; line-height: 14px;\"><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span></p>\r\n<p><span style=\"font-family: Arial, Helvetica, sans; font-size: 11px; line-height: 14px;\"><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br /></span></p></div></body></html>",
borderRadius:8,
scalesPageToFit : false
});
defnRow.add(defnWebView);
data[0].add(defnRow);
table = Titanium.UI.createTableView({ top:0, left:0, bottom:0,
right:0,
data:data,
style:Titanium.UI.iPhone.TableViewStyle.GROUPED
}); win.add(table);
win.open();
Here you have a longer project https://gist.github.com/758489">https://gist.github.com/758489
Can't reproduce in SDK 2.2.0.014b86f, iPhone Sim 5.1.