Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12748] iOS: webView postLayout fires twice

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.0.2, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-sdk3.0.2, reprod
ReporterEric Merriman
AssigneeUnknown
Created2013-02-15T01:52:31.000+0000
Updated2018-02-28T20:03:17.000+0000

Description

When using the postlayout event for web view, the event fires twice.
var win = Ti.UI.createWindow();

var webview = Ti.UI.createWebView({
				url : "http://www.google.com",
				width : 100,
				height : 100,
				top : 300
			});
				
webview.addEventListener("postlayout", function() {
				Ti.API.info("---------------------webview postlayout");
	});
win.add(webview);
win.open();
Steps to reproduce: 1) Create a project with the above code 2) Run the code on device or simulator 3) Examine the console output Result: webview postlayout fires twice Expected: webview postlayout fires once

Comments

  1. jithinpv 2013-03-25

    Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) iOS iPhone Simulator: iOS SDK version: 6.0 jithinpv
  2. Lee Morris 2017-06-19

    I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170609091155 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source