[TIMOB-20079] ti.ui.ipad.popover: Can't change popover's background color
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-12-01T14:14:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.2.0 |
Components | iOS |
Labels | ios, popover, qe-5.2.0 |
Reporter | Edwin Ardiwinata |
Assignee | Hans Knöchel |
Created | 2015-11-30T11:33:04.000+0000 |
Updated | 2016-01-22T00:41:38.000+0000 |
Description
As described here: https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iPad.Popover
Ti.UI.iPad.Popover doesn't have backgroundColor property.
Current iOS native implementation for the iPad popover allows the change of background color as described in this documentation: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIPopoverPresentationController_class/#//apple_ref/occ/instp/UIPopoverPresentationController/backgroundColor
You can change the background color of the popover as long as you're passing in a window with a background color. However, the tail of the popover does not match, here's a video: https://db.tt/gNADVBg8
Allowing to set the backgroundColor inside the popover directly instead of its content view to ensure the coloring of the "tick" as well. We document the property as creation-only. PR: https://github.com/appcelerator/titanium_mobile/pull/7513
CR and FT Passed. PR merged.
Verified as fixed, setting the background color directly within the popover now correctly sets the popover background & the "tail" of the popover. Tested on: iPad Pro ( 9.1 ) Mac OSX El Capitan 10.11 (15A284) Ti SDK: 5.2.0.v20160114021251 Appc NPM: 4.2.2 App CLI: 5.2.0-220 Xcode 7.2 Node v4.2.3 *Closing Ticket.*