[TIMOB-13544] TiAPI: bubbleParent property not being set properly on both iOS and Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-09T17:56:00.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | Release 3.1.1, Release 3.2.0 |
Components | Core |
Labels | android, bubbleParent, button, ios, qe-closed-3.1.1, qe-testadded, triage |
Reporter | Milt Grinberg |
Assignee | Ingo Muschenetz |
Created | 2012-12-18T20:43:24.000+0000 |
Updated | 2014-06-19T12:44:14.000+0000 |
Description
*Problem description*
the bubbleParent property is not being set correctly, on Android and iOS for creation of a button, and on iOS only when using the setter function.
*Test case*
var win = Ti.UI.createWindow({
backgroundColor : "#FFF"
});
try {
var button1 = Ti.UI.createButton({
bubbleParent : false,
});
Ti.API.info('button1 bubbleParent:false = ' + button1.getBubbleParent());
button1.setBubbleParent(false);
Ti.API.info('button1 setBubbleParent(false) = ' + button1.getBubbleParent());
win.add(button1);
} catch (e) {
Ti.API.error('button1 getBubbleParent() error:' + e);
}
win.open();
*Logs: Android*
button1 bubbleParent:false = true
button1 setBubblePrent(false) = false
*Logs: iOS*
button1 bubbleParent:false = 0
button1 setBubbleParent(false) = true
Attachments
File | Date | Size |
---|---|---|
log4.txt | 2012-12-18T20:43:24.000+0000 | 13200 |
sample4.js | 2012-12-18T20:43:24.000+0000 | 798 |
Hi Milt, Would you mind fleshing out the test case a bit, with the table view and window creation etc. so that we can just drop it into a project? Could you also state the Android device/emulator and OS version that you're working with? Thanks!
Tested and confirmed with 3.1 CI (3.1.0.v20130410180128) with iOS 6 simulator and Samsung Galaxy S2 Android 2.3.6. Different behavior on iOS and Android - both platforms broken. The only method that works is setBubbleParent() on Android only.
Right now on Android, the bubbleParent property can not be set during creation of the proxy. It can only be set through
or
So... do the docs explain this? Is the reason for it an underlying issue with code architecture? Now we need to establish why using setBubbleParent() doesn't work on iOS.
Verified as fixed and working as expected, including the 'setBubbleParent()' method. Sample code:
It returns on both iOS and Android: button1 bubbleParent:false = false button1 setBubbleParent(true) = true Environment: Appcelerator Studio 3.1.1.201305292130 Titanium SDK 3.1.1.v20130529114554 Alloy 1.1.3-alpha Titanium-Code-Processor 1.1.3-alpha3 Closing.