[TIMOB-12748] iOS: webView postLayout fires twice
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.0.2, Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-sdk3.0.2, reprod |
Reporter | Eric Merriman |
Assignee | Unknown |
Created | 2013-02-15T01:52:31.000+0000 |
Updated | 2018-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
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
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