[AC-201] Ti.UI.View.bubbleParent - not handled with applyProperties
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2015-11-05T08:56:45.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | android |
| Reporter | Manojkumar Murugesan |
| Assignee | Shak Hossain |
| Created | 2015-07-07T16:43:49.000+0000 |
| Updated | 2015-11-05T15:53:18.000+0000 |
Description
Ti.UI.View.bubbleParent - http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Proxy-property-bubbleParent is not handled with *applyProperties* method.
+Testcase+
var win = Ti.UI.createWindow({
backgroundColor: "#fff"
});
win.addEventListener("open", function(e){
console.log(button.bubbleParent);
button.applyProperties({
title: "Bubble disabled",
bubbleParent: false
});
console.log(button.bubbleParent);
});
var button = Ti.UI.createButton({
title: "Bubble Parent"
});
win.add(button);
win.open();
+Result+
*iOS* - Works as expected, first statement prints true and second prints false.
*Android* - Doesn't work, both statement prints true. Setting false on creation only works.
Hello, I have tested this issue in latest SDK 4.1.0.GA and 4.1.1.GA with Android 5.1.0. The issue is fixed. iOS - Works as expected, first statement prints true and second prints false. Android -Works as expected, first statement prints true and second prints false. Please update your Titanium SDK. Thanks.
Works as expected, we can mark this as resolved.
var win = Ti.UI.createWindow({ backgroundColor : "#fff" }); win.addEventListener("click", function didClick(e) { console.log(button.bubbleParent); button.bubbleParent = false; console.log(button.bubbleParent); }); var button = Ti.UI.createButton({ title : "Bubble Parent" }); win.add(button); win.open();It works with getter or setter methods / properties but not when we use *applyProperties*
[~mrahman]: The issue is not fixed, please re-open. setBubbleParent / getBubbleParent only works on Android. *applyProperties* is still failing.