Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2707] Add a webview to a tableView (1.5.1.) behaves rare or doesn't work (Iphone).

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-07-26T14:31:50.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterFĂ©lix
AssigneeNeeraj Gupta
Created2011-04-15T03:27:32.000+0000
Updated2012-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>&nbsp;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>&nbsp;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

Comments

  1. Stephen Tramer 2012-07-26

    Can't reproduce in SDK 2.2.0.014b86f, iPhone Sim 5.1.

JSON Source